source: chapter06/grep.xml@ fa21b3d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since fa21b3d was fa21b3d, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Initial support of UTF-8. Thanks Alexander Patrakov.

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

  • 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" "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>4.5 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>The current Grep package has many bugs, especially in the support of
32multibyte locales. RedHat fixed some of them with the following patch:</para>
33
34<screen><userinput>patch -Np1 -i ../&grep-fixes-patch;</userinput></screen>
35
36<para>In order for the tests added by this patch to pass, the permissions for
37the test file have to be changed:</para>
38
39<screen><userinput>chmod +x tests/fmbtest.sh</userinput></screen>
40
41<para>Prepare Grep for compilation:</para>
42
43<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
44
45<para>Compile the package:</para>
46
47<screen><userinput>make</userinput></screen>
48
49<para>To test the results, issue:
50<userinput>make check</userinput>.</para>
51
52<para>Install the package:</para>
53
54<screen><userinput>make install</userinput></screen>
55
56</sect2>
57
58
59<sect2 id="contents-grep" role="content"><title>Contents of Grep</title>
60
61<segmentedlist>
62<segtitle>Installed programs</segtitle>
63<seglistitem><seg>egrep (link to grep), fgrep (link to grep), and grep</seg></seglistitem>
64</segmentedlist>
65
66<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
67<?dbfo list-presentation="list"?>
68<?dbhtml list-presentation="table"?>
69
70<varlistentry id="egrep">
71<term><command>egrep</command></term>
72<listitem>
73<para>Prints lines matching an extended regular expression</para>
74<indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
75</listitem>
76</varlistentry>
77
78<varlistentry id="fgrep">
79<term><command>fgrep</command></term>
80<listitem>
81<para>Prints lines matching a list of fixed strings</para>
82<indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
83</listitem>
84</varlistentry>
85
86<varlistentry id="grep">
87<term><command>grep</command></term>
88<listitem>
89<para>Prints lines matching a basic regular expression</para>
90<indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
91</listitem>
92</varlistentry>
93</variablelist>
94
95</sect2>
96
97</sect1>
98
Note: See TracBrowser for help on using the repository browser.