source: chapter06/grep.xml@ 835892c

Last change on this file since 835892c was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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