[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[fcc02767] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-grep" role="wrap">
|
---|
| 9 | <?dbhtml filename="grep.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>grep</productname>
|
---|
| 13 | <productnumber>&grep-version;</productnumber>
|
---|
| 14 | <address>&grep-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Grep-&grep-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-grep">
|
---|
| 20 | <primary sortas="a-Grep">Grep</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
[387a32af] | 26 | <para>The Grep package contains programs for searching through the contents of files.</para>
|
---|
[fcc02767] | 27 |
|
---|
| 28 | <segmentedlist>
|
---|
| 29 | <segtitle>&buildtime;</segtitle>
|
---|
| 30 | <segtitle>&diskspace;</segtitle>
|
---|
| 31 |
|
---|
| 32 | <seglistitem>
|
---|
[fb386e0] | 33 | <seg>&grep-fin-sbu;</seg>
|
---|
| 34 | <seg>&grep-fin-du;</seg>
|
---|
[fcc02767] | 35 | </seglistitem>
|
---|
| 36 | </segmentedlist>
|
---|
| 37 |
|
---|
| 38 | </sect2>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="installation">
|
---|
| 41 | <title>Installation of Grep</title>
|
---|
| 42 |
|
---|
[b17680d] | 43 | <para>
|
---|
| 44 | First, remove a warning about using egrep and fgrep that makes
|
---|
| 45 | tests on some packages fail:
|
---|
| 46 | </para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput remap="pre">sed -i "s/echo/#echo/" src/egrep.sh</userinput></screen>
|
---|
| 49 |
|
---|
[fcc02767] | 50 | <para>Prepare Grep for compilation:</para>
|
---|
| 51 |
|
---|
[d7a9421] | 52 | <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
---|
[fcc02767] | 53 |
|
---|
| 54 | <para>Compile the package:</para>
|
---|
| 55 |
|
---|
| 56 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | <para>To test the results, issue:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
| 61 |
|
---|
| 62 | <para>Install the package:</para>
|
---|
| 63 |
|
---|
| 64 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 id="contents-grep" role="content">
|
---|
| 69 | <title>Contents of Grep</title>
|
---|
| 70 |
|
---|
| 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
| 73 |
|
---|
| 74 | <seglistitem>
|
---|
| 75 | <seg>egrep, fgrep, and grep</seg>
|
---|
| 76 | </seglistitem>
|
---|
| 77 | </segmentedlist>
|
---|
| 78 |
|
---|
| 79 | <variablelist>
|
---|
| 80 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 81 | <?dbfo list-presentation="list"?>
|
---|
| 82 | <?dbhtml list-presentation="table"?>
|
---|
| 83 |
|
---|
| 84 | <varlistentry id="egrep">
|
---|
| 85 | <term><command>egrep</command></term>
|
---|
| 86 | <listitem>
|
---|
[40488bd] | 87 | <para>Prints lines matching an extended regular expression.
|
---|
[94bf45a] | 88 | It is obsolete, use <command>grep -E</command> instead</para>
|
---|
[fcc02767] | 89 | <indexterm zone="ch-system-grep egrep">
|
---|
| 90 | <primary sortas="b-egrep">egrep</primary>
|
---|
| 91 | </indexterm>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="fgrep">
|
---|
| 96 | <term><command>fgrep</command></term>
|
---|
| 97 | <listitem>
|
---|
[40488bd] | 98 | <para>Prints lines matching a list of fixed strings.
|
---|
[d060b33] | 99 | It is obsolete, use <command>grep -F</command> instead</para>
|
---|
[fcc02767] | 100 | <indexterm zone="ch-system-grep fgrep">
|
---|
| 101 | <primary sortas="b-fgrep">fgrep</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="grep">
|
---|
| 107 | <term><command>grep</command></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>Prints lines matching a basic regular expression</para>
|
---|
| 110 | <indexterm zone="ch-system-grep grep">
|
---|
| 111 | <primary sortas="b-grep">grep</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
| 115 |
|
---|
| 116 | </variablelist>
|
---|
| 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | </sect1>
|
---|