[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[6370fa6] | 7 |
|
---|
[6a82dd9] | 8 | <sect1 id="ch-system-grep" role="wrap">
|
---|
| 9 | <?dbhtml filename="grep.html"?>
|
---|
[673b0d8] | 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>grep</productname>
|
---|
| 13 | <productnumber>&grep-version;</productnumber>
|
---|
| 14 | <address>&grep-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[6a82dd9] | 17 | <title>Grep-&grep-version;</title>
|
---|
[3554fa3a] | 18 |
|
---|
[6a82dd9] | 19 | <indexterm zone="ch-system-grep">
|
---|
| 20 | <primary sortas="a-Grep">Grep</primary>
|
---|
| 21 | </indexterm>
|
---|
[73aedd1d] | 22 |
|
---|
[6a82dd9] | 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[fa21b3d] | 25 |
|
---|
[6a82dd9] | 26 | <para>The Grep package contains programs for searching through files.</para>
|
---|
[fa21b3d] | 27 |
|
---|
[6a82dd9] | 28 | <segmentedlist>
|
---|
| 29 | <segtitle>&buildtime;</segtitle>
|
---|
| 30 | <segtitle>&diskspace;</segtitle>
|
---|
[fa21b3d] | 31 |
|
---|
[6a82dd9] | 32 | <seglistitem>
|
---|
[e4a5635] | 33 | <seg>&grep-ch6-sbu;</seg>
|
---|
| 34 | <seg>&grep-ch6-du;</seg>
|
---|
[6a82dd9] | 35 | </seglistitem>
|
---|
| 36 | </segmentedlist>
|
---|
[fa21b3d] | 37 |
|
---|
[6a82dd9] | 38 | </sect2>
|
---|
[73aedd1d] | 39 |
|
---|
[6a82dd9] | 40 | <sect2 role="installation">
|
---|
| 41 | <title>Installation of Grep</title>
|
---|
[73aedd1d] | 42 |
|
---|
[6a82dd9] | 43 | <para>The current Grep package has many bugs, especially in the support of
|
---|
[e577c86e] | 44 | multibyte locales. The following consolidated patch from Debian fixes some of them,
|
---|
| 45 | improves the number of individual tests which are passed, and much improves the
|
---|
| 46 | speed in UTF-8 locales:</para>
|
---|
[73aedd1d] | 47 |
|
---|
[e577c86e] | 48 | <screen><userinput remap="pre">patch -Np1 -i ../&grep-debian-patch;</userinput></screen>
|
---|
[73aedd1d] | 49 |
|
---|
[e577c86e] | 50 | <para>Upstream have fixed some of the documentation, and changed some of the
|
---|
| 51 | tests and the expected results in the newest test scripts. This means that
|
---|
| 52 | not so many of the individual tests fail:</para>
|
---|
[73aedd1d] | 53 |
|
---|
[e577c86e] | 54 | <screen><userinput remap="pre">patch -Np1 -i ../&grep-fixes-patch;</userinput></screen>
|
---|
[6370fa6] | 55 |
|
---|
[6a82dd9] | 56 | <para>Prepare Grep for compilation:</para>
|
---|
[5888299] | 57 |
|
---|
[0445a3d] | 58 | <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
|
---|
[673b0d8] | 59 |
|
---|
[01a94005] | 60 | <para>Compile the package:</para>
|
---|
[81fd230] | 61 |
|
---|
[01a94005] | 62 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[81fd230] | 63 |
|
---|
[0445a3d] | 64 | <para>To test the results, issue:</para>
|
---|
| 65 |
|
---|
[e577c86e] | 66 | <screen><userinput remap="test">make check || true</userinput></screen>
|
---|
| 67 |
|
---|
| 68 | <para>There are known test failures in the <command>foad1.sh</command> and
|
---|
| 69 | <command>fmbtest.sh</command> tests. The "|| true" construct is
|
---|
| 70 | used to avoid build automated build scripts failing due to the test failures.
|
---|
| 71 | A good run will show 2 failures from 14 tests, but if you look at the
|
---|
| 72 | output you will see in excess of forty individual tests which failed - these
|
---|
| 73 | are all in the new tests added since the previous version.</para>
|
---|
[81fd230] | 74 |
|
---|
[6a82dd9] | 75 | <para>Install the package:</para>
|
---|
[81fd230] | 76 |
|
---|
[0445a3d] | 77 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[673b0d8] | 78 |
|
---|
[6a82dd9] | 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 id="contents-grep" role="content">
|
---|
| 82 | <title>Contents of Grep</title>
|
---|
| 83 |
|
---|
| 84 | <segmentedlist>
|
---|
| 85 | <segtitle>Installed programs</segtitle>
|
---|
| 86 |
|
---|
| 87 | <seglistitem>
|
---|
[2791a8e] | 88 | <seg>egrep, fgrep, and grep</seg>
|
---|
[6a82dd9] | 89 | </seglistitem>
|
---|
| 90 | </segmentedlist>
|
---|
| 91 |
|
---|
| 92 | <variablelist>
|
---|
| 93 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 94 | <?dbfo list-presentation="list"?>
|
---|
| 95 | <?dbhtml list-presentation="table"?>
|
---|
| 96 |
|
---|
| 97 | <varlistentry id="egrep">
|
---|
| 98 | <term><command>egrep</command></term>
|
---|
| 99 | <listitem>
|
---|
| 100 | <para>Prints lines matching an extended regular expression</para>
|
---|
| 101 | <indexterm zone="ch-system-grep egrep">
|
---|
| 102 | <primary sortas="b-egrep">egrep</primary>
|
---|
| 103 | </indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | <varlistentry id="fgrep">
|
---|
| 108 | <term><command>fgrep</command></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>Prints lines matching a list of fixed strings</para>
|
---|
| 111 | <indexterm zone="ch-system-grep fgrep">
|
---|
| 112 | <primary sortas="b-fgrep">fgrep</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 |
|
---|
| 117 | <varlistentry id="grep">
|
---|
| 118 | <term><command>grep</command></term>
|
---|
| 119 | <listitem>
|
---|
| 120 | <para>Prints lines matching a basic regular expression</para>
|
---|
| 121 | <indexterm zone="ch-system-grep grep">
|
---|
| 122 | <primary sortas="b-grep">grep</primary>
|
---|
| 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | </variablelist>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
[673b0d8] | 130 |
|
---|
| 131 | </sect1>
|
---|