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