source: final-system/common/grep.xml@ db63ccc

Last change on this file since db63ccc was eac7362, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-grep" role="wrap">
11 <?dbhtml filename="grep.html"?>
12
13 <title>Grep-&grep-version;</title>
14
15 <indexterm zone="ch-system-grep">
16 <primary sortas="a-Grep">Grep</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <para>The Grep package contains programs for searching through
23 files.</para>
24
25 <segmentedlist>
26 <segtitle>&dependencies;</segtitle>
27
28 <seglistitem>
29 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext,
30 Glibc, Make, Sed, and Texinfo</seg>
31 </seglistitem>
32 </segmentedlist>
33
34 </sect2>
35
36 <sect2 role="installation">
37 <title>Installation of Grep</title>
38
39 <para os="a">Prepare Grep for compilation:</para>
40
41<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
42
43 <para os="c">Compile the package:</para>
44
45<screen os="d"><userinput>make</userinput></screen>
46
47 <para os="e">To test the results, issue:
48 <userinput>make check</userinput>.</para>
49
50 <para os="f">Install the package:</para>
51
52<screen os="g"><userinput>make install</userinput></screen>
53
54 </sect2>
55
56 <sect2 id="contents-grep" role="content">
57 <title>Contents of Grep</title>
58
59 <segmentedlist>
60 <segtitle>Installed programs</segtitle>
61
62 <seglistitem>
63 <seg>egrep (link to grep), fgrep (link to grep), and grep</seg>
64 </seglistitem>
65 </segmentedlist>
66
67 <variablelist>
68 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
69 <?dbfo list-presentation="list"?>
70 <?dbhtml list-presentation="table"?>
71
72 <varlistentry id="egrep">
73 <term><command>egrep</command></term>
74 <listitem>
75 <para>Prints lines matching an extended regular expression</para>
76 <indexterm zone="ch-system-grep egrep">
77 <primary sortas="b-egrep">egrep</primary>
78 </indexterm>
79 </listitem>
80 </varlistentry>
81
82 <varlistentry id="fgrep">
83 <term><command>fgrep</command></term>
84 <listitem>
85 <para>Prints lines matching a list of fixed strings</para>
86 <indexterm zone="ch-system-grep fgrep">
87 <primary sortas="b-fgrep">fgrep</primary>
88 </indexterm>
89 </listitem>
90 </varlistentry>
91
92 <varlistentry id="grep">
93 <term><command>grep</command></term>
94 <listitem>
95 <para>Prints lines matching a basic regular expression</para>
96 <indexterm zone="ch-system-grep grep">
97 <primary sortas="b-grep">grep</primary>
98 </indexterm>
99 </listitem>
100 </varlistentry>
101
102 </variablelist>
103
104 </sect2>
105
106</sect1>
Note: See TracBrowser for help on using the repository browser.