[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 | <title>Grep-&grep-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-grep">
|
---|
| 14 | <primary sortas="a-Grep">Grep</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Grep package contains programs for searching through
|
---|
| 21 | files.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Grep</title>
|
---|
| 27 |
|
---|
[c8c7b3b] | 28 | <para os="s1">Fix a potential security issue identified upstream:</para>
|
---|
| 29 |
|
---|
| 30 | <screen os="s2"><userinput>sed -i -e '/tp++/a if (ep <= tp) break;' src/kwset.c</userinput></screen>
|
---|
| 31 |
|
---|
[3f8be484] | 32 | <para os="a">Prepare Grep for compilation:</para>
|
---|
| 33 |
|
---|
[7cd7f99] | 34 | <screen os="b"><userinput>./configure \
|
---|
| 35 | --prefix=/usr \
|
---|
| 36 | --bindir=/bin</userinput></screen>
|
---|
[3f8be484] | 37 |
|
---|
| 38 | <para os="c">Compile the package:</para>
|
---|
| 39 |
|
---|
| 40 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 41 |
|
---|
[686839b] | 42 | <para os="e">To test the results, issue:</para>
|
---|
| 43 |
|
---|
| 44 | <screen os="e2"><userinput remap="test">make check</userinput></screen>
|
---|
[3f8be484] | 45 |
|
---|
| 46 | <para os="f">Install the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|
| 52 | <sect2 id="contents-grep" role="content">
|
---|
| 53 | <title>Contents of Grep</title>
|
---|
| 54 |
|
---|
| 55 | <segmentedlist>
|
---|
| 56 | <segtitle>Installed programs</segtitle>
|
---|
| 57 |
|
---|
| 58 | <seglistitem>
|
---|
[f698055a] | 59 | <seg>egrep, fgrep, grep</seg>
|
---|
[3f8be484] | 60 | </seglistitem>
|
---|
| 61 | </segmentedlist>
|
---|
| 62 |
|
---|
| 63 | <variablelist>
|
---|
| 64 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 65 | <?dbfo list-presentation="list"?>
|
---|
| 66 | <?dbhtml list-presentation="table"?>
|
---|
| 67 |
|
---|
| 68 | <varlistentry id="egrep">
|
---|
| 69 | <term><command>egrep</command></term>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Prints lines matching an extended regular expression</para>
|
---|
| 72 | <indexterm zone="ch-system-grep egrep">
|
---|
| 73 | <primary sortas="b-egrep">egrep</primary>
|
---|
| 74 | </indexterm>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
| 78 | <varlistentry id="fgrep">
|
---|
| 79 | <term><command>fgrep</command></term>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>Prints lines matching a list of fixed strings</para>
|
---|
| 82 | <indexterm zone="ch-system-grep fgrep">
|
---|
| 83 | <primary sortas="b-fgrep">fgrep</primary>
|
---|
| 84 | </indexterm>
|
---|
| 85 | </listitem>
|
---|
| 86 | </varlistentry>
|
---|
| 87 |
|
---|
| 88 | <varlistentry id="grep">
|
---|
| 89 | <term><command>grep</command></term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>Prints lines matching a basic regular expression</para>
|
---|
| 92 | <indexterm zone="ch-system-grep grep">
|
---|
| 93 | <primary sortas="b-grep">grep</primary>
|
---|
| 94 | </indexterm>
|
---|
| 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
| 97 |
|
---|
| 98 | </variablelist>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | </sect1>
|
---|