[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 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-system-grep" xreflabel="Grep">
|
---|
[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 |
|
---|
[5888299] | 12 | <para>The Grep package contains programs for searching through files.</para>
|
---|
| 13 |
|
---|
[673b0d8] | 14 | <screen>&buildtime; 0.1 SBU
|
---|
| 15 | &diskspace; 5.8 MB</screen>
|
---|
| 16 |
|
---|
| 17 | <para>Grep installation depends on: Bash, Binutils, Coreutils,
|
---|
| 18 | Diffutils, GCC, Gettext, Glibc, Make, Sed, Texinfo.</para>
|
---|
[3554fa3a] | 19 |
|
---|
[73aedd1d] | 20 |
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Installation of Grep</title>
|
---|
| 24 |
|
---|
| 25 | <para>Prepare Grep for compilation:</para>
|
---|
| 26 |
|
---|
[c288d97] | 27 | <screen><userinput>./configure --prefix=/usr --bindir=/bin --with-included-regex</userinput></screen>
|
---|
[73aedd1d] | 28 |
|
---|
| 29 | <para>Compile the package:</para>
|
---|
| 30 |
|
---|
| 31 | <screen><userinput>make</userinput></screen>
|
---|
| 32 |
|
---|
[673b0d8] | 33 | <para>To test the results, issue:
|
---|
[8a5f906] | 34 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 35 |
|
---|
[673b0d8] | 36 | <para>Now install the package:</para>
|
---|
[73aedd1d] | 37 |
|
---|
| 38 | <screen><userinput>make install</userinput></screen>
|
---|
| 39 |
|
---|
| 40 | </sect2>
|
---|
[6370fa6] | 41 |
|
---|
[5888299] | 42 |
|
---|
[673b0d8] | 43 | <sect2 id="contents-grep"><title>Contents of Grep</title>
|
---|
| 44 |
|
---|
| 45 | <para><emphasis>Installed programs</emphasis>: egrep (link to grep), fgrep
|
---|
| 46 | (link to grep) and grep</para>
|
---|
| 47 |
|
---|
| 48 | </sect2>
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | <sect2><title>Short descriptions</title>
|
---|
[73aedd1d] | 52 |
|
---|
[673b0d8] | 53 | <indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
|
---|
| 54 | <para id="egrep"><command>egrep</command> prints lines matching an extended regular
|
---|
| 55 | expression.</para>
|
---|
| 56 |
|
---|
| 57 | <indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
|
---|
| 58 | <para id="fgrep"><command>fgrep</command> prints lines matching a list of fixed
|
---|
| 59 | strings.</para>
|
---|
| 60 |
|
---|
| 61 | <indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
|
---|
| 62 | <para id="grep"><command>grep</command> prints lines matching a basic regular
|
---|
| 63 | expression.</para>
|
---|
| 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 | </sect1>
|
---|