source: chapter06/grep.xml@ ac89fab

Last change on this file since ac89fab was 83865af, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Merged stuff from RAQ2 in chapter06 - first round.

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

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/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>Grep installation depends on</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 arch="raq2">This patch updates config.guess and config.sub for RaQ2 server.</para>
32
33<screen arch="raq2"><userinput>patch -Np1 -i ../grep-&grep-version;-raq2_config_update-1.patch</userinput></screen>
34
35<para>Prepare Grep for compilation:</para>
36
37<screen><userinput>./configure --prefix=/usr --bindir=/bin --with-included-regex</userinput></screen>
38
39<para>Compile the package:</para>
40
41<screen><userinput>make</userinput></screen>
42
43<para>To test the results, issue:
44<userinput>make check</userinput>.</para>
45
46<para>Install the package:</para>
47
48<screen><userinput>make install</userinput></screen>
49
50</sect2>
51
52
53<sect2 id="contents-grep" role="content"><title>Contents of Grep</title>
54
55<segmentedlist>
56<segtitle>Installed programs</segtitle>
57<seglistitem><seg>egrep (link to grep), fgrep (link to grep), and grep</seg></seglistitem>
58</segmentedlist>
59
60<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
61<?dbfo list-presentation="list"?>
62
63<varlistentry id="egrep">
64<term><command>egrep</command></term>
65<listitem>
66<para>Prints lines matching an extended regular expression</para>
67<indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
68</listitem>
69</varlistentry>
70
71<varlistentry id="fgrep">
72<term><command>fgrep</command></term>
73<listitem>
74<para>Prints lines matching a list of fixed strings</para>
75<indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
76</listitem>
77</varlistentry>
78
79<varlistentry id="grep">
80<term><command>grep</command></term>
81<listitem>
82<para>Prints lines matching a basic regular expression</para>
83<indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
84</listitem>
85</varlistentry>
86</variablelist>
87
88</sect2>
89
90</sect1>
91
Note: See TracBrowser for help on using the repository browser.