source: BOOK/final-system/common/grep.xml@ 4cc3468

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4cc3468 was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 3.1 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>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>Not checked yet</seg>
31 <seg>Not checked yet</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 <segmentedlist>
36 <segtitle>&dependencies;</segtitle>
37
38 <seglistitem>
39 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext,
40 Glibc, Make, Sed, and Texinfo</seg>
41 </seglistitem>
42 </segmentedlist>
43
44 </sect2>
45
46 <sect2 role="installation">
47 <title>Installation of Grep</title>
48
49 <para os="a">Prepare Grep for compilation:</para>
50
51<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
52
53 <para os="c">Compile the package:</para>
54
55<screen os="d"><userinput>make</userinput></screen>
56
57 <para os="e">To test the results, issue:
58 <userinput>make check</userinput>.</para>
59
60 <para os="f">Install the package:</para>
61
62<screen os="g"><userinput>make install</userinput></screen>
63
64 </sect2>
65
66 <sect2 id="contents-grep" role="content">
67 <title>Contents of Grep</title>
68
69 <segmentedlist>
70 <segtitle>Installed programs</segtitle>
71
72 <seglistitem>
73 <seg>egrep (link to grep), fgrep (link to grep), and grep</seg>
74 </seglistitem>
75 </segmentedlist>
76
77 <variablelist>
78 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
79 <?dbfo list-presentation="list"?>
80 <?dbhtml list-presentation="table"?>
81
82 <varlistentry id="egrep">
83 <term><command>egrep</command></term>
84 <listitem>
85 <para>Prints lines matching an extended regular expression</para>
86 <indexterm zone="ch-system-grep egrep">
87 <primary sortas="b-egrep">egrep</primary>
88 </indexterm>
89 </listitem>
90 </varlistentry>
91
92 <varlistentry id="fgrep">
93 <term><command>fgrep</command></term>
94 <listitem>
95 <para>Prints lines matching a list of fixed strings</para>
96 <indexterm zone="ch-system-grep fgrep">
97 <primary sortas="b-fgrep">fgrep</primary>
98 </indexterm>
99 </listitem>
100 </varlistentry>
101
102 <varlistentry id="grep">
103 <term><command>grep</command></term>
104 <listitem>
105 <para>Prints lines matching a basic regular expression</para>
106 <indexterm zone="ch-system-grep grep">
107 <primary sortas="b-grep">grep</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 </variablelist>
113
114 </sect2>
115
116</sect1>
Note: See TracBrowser for help on using the repository browser.