[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1fe35e1] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[1fe35e1] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xml:id="ch-system-grep" xreflabel="Grep" role="wrap">
|
---|
| 8 | <info><title>Grep-&grep-version;</title></info>
|
---|
[673b0d8] | 9 | <?dbhtml filename="grep.html"?>
|
---|
| 10 |
|
---|
| 11 | <indexterm zone="ch-system-grep"><primary sortas="a-Grep">Grep</primary></indexterm>
|
---|
[6370fa6] | 12 |
|
---|
[1fe35e1] | 13 | <section role="package"><info><title/></info>
|
---|
[5888299] | 14 | <para>The Grep package contains programs for searching through files.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>5.8 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Grep installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Coreutils,
|
---|
| 25 | Diffutils, GCC, Gettext, Glibc, Make, Sed, Texinfo</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
[1fe35e1] | 27 | </section>
|
---|
[3554fa3a] | 28 |
|
---|
[1fe35e1] | 29 | <section role="installation">
|
---|
| 30 | <info><title>Installation of Grep</title></info>
|
---|
[73aedd1d] | 31 |
|
---|
| 32 | <para>Prepare Grep for compilation:</para>
|
---|
| 33 |
|
---|
[c288d97] | 34 | <screen><userinput>./configure --prefix=/usr --bindir=/bin --with-included-regex</userinput></screen>
|
---|
[73aedd1d] | 35 |
|
---|
| 36 | <para>Compile the package:</para>
|
---|
| 37 |
|
---|
| 38 | <screen><userinput>make</userinput></screen>
|
---|
| 39 |
|
---|
[673b0d8] | 40 | <para>To test the results, issue:
|
---|
[8a5f906] | 41 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 42 |
|
---|
[673b0d8] | 43 | <para>Now install the package:</para>
|
---|
[73aedd1d] | 44 |
|
---|
| 45 | <screen><userinput>make install</userinput></screen>
|
---|
| 46 |
|
---|
[1fe35e1] | 47 | </section>
|
---|
[6370fa6] | 48 |
|
---|
[5888299] | 49 |
|
---|
[1fe35e1] | 50 | <section xml:id="contents-grep" role="content"><info><title>Contents of Grep</title></info>
|
---|
[673b0d8] | 51 |
|
---|
[c6cb3aa] | 52 | <segmentedlist>
|
---|
| 53 | <segtitle>Installed programs</segtitle>
|
---|
| 54 | <seglistitem><seg>egrep (link to grep), fgrep (link to grep) and grep</seg></seglistitem>
|
---|
| 55 | </segmentedlist>
|
---|
[673b0d8] | 56 |
|
---|
[c6cb3aa] | 57 | <variablelist><title>Short descriptions</title>
|
---|
[73aedd1d] | 58 |
|
---|
[1fe35e1] | 59 | <varlistentry xml:id="egrep">
|
---|
[b8a819f] | 60 | <term><command>egrep</command></term>
|
---|
[c6cb3aa] | 61 | <listitem>
|
---|
[673b0d8] | 62 | <indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
|
---|
[c6cb3aa] | 63 | <para>prints lines matching an extended regular expression.</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </varlistentry>
|
---|
[673b0d8] | 66 |
|
---|
[1fe35e1] | 67 | <varlistentry xml:id="fgrep">
|
---|
[b8a819f] | 68 | <term><command>fgrep</command></term>
|
---|
[c6cb3aa] | 69 | <listitem>
|
---|
[673b0d8] | 70 | <indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
|
---|
[c6cb3aa] | 71 | <para>prints lines matching a list of fixed strings.</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </varlistentry>
|
---|
[673b0d8] | 74 |
|
---|
[1fe35e1] | 75 | <varlistentry xml:id="grep">
|
---|
[b8a819f] | 76 | <term><command>grep</command></term>
|
---|
[c6cb3aa] | 77 | <listitem>
|
---|
[673b0d8] | 78 | <indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
|
---|
[c6cb3aa] | 79 | <para>prints lines matching a basic regular expression.</para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </varlistentry>
|
---|
| 82 | </variablelist>
|
---|
[673b0d8] | 83 |
|
---|
[1fe35e1] | 84 | </section>
|
---|
[673b0d8] | 85 |
|
---|
[1fe35e1] | 86 | </section>
|
---|