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 | ]>
|
---|
6 | <sect1 id="ch-system-grep" xreflabel="Grep">
|
---|
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>
|
---|
11 |
|
---|
12 | <para>The Grep package contains programs for searching through files.</para>
|
---|
13 |
|
---|
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>
|
---|
19 |
|
---|
20 |
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Installation of Grep</title>
|
---|
24 |
|
---|
25 | <para>Prepare Grep for compilation:</para>
|
---|
26 |
|
---|
27 | <screen><userinput>./configure --prefix=/usr --bindir=/bin --with-included-regex</userinput></screen>
|
---|
28 |
|
---|
29 | <para>Compile the package:</para>
|
---|
30 |
|
---|
31 | <screen><userinput>make</userinput></screen>
|
---|
32 |
|
---|
33 | <para>To test the results, issue:
|
---|
34 | <userinput>make check</userinput>.</para>
|
---|
35 |
|
---|
36 | <para>Now install the package:</para>
|
---|
37 |
|
---|
38 | <screen><userinput>make install</userinput></screen>
|
---|
39 |
|
---|
40 | </sect2>
|
---|
41 |
|
---|
42 |
|
---|
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>
|
---|
52 |
|
---|
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>
|
---|