source: chapter06/grep.xml@ 4589f5f

6.1 6.1.1
Last change on this file since 4589f5f was 4589f5f, checked in by Archaic <archaic@…>, 19 years ago

Removed --with-included-regex from chapter6's grep since it is less reliable than glibc's in non-C locales. (merged from trunk r5962)

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

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