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

sysvinit
Last change on this file since b7c7511 was a76d4c4, checked in by William Harrington <kb0iic@…>, 9 years ago

Update Grep to 2.21 from 2.20.

  • 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.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-grep" role="wrap">
9 <?dbhtml filename="grep.html"?>
10
11 <title>Grep-&grep-version;</title>
12
13 <indexterm zone="ch-system-grep">
14 <primary sortas="a-Grep">Grep</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Grep package contains programs for searching through
21 files.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Grep</title>
27
28 <para os="s1">Fix a potential security issue identified upstream:</para>
29
30<screen os="s2"><userinput>sed -i -e '/tp++/a if (ep &lt;= tp) break;' src/kwset.c</userinput></screen>
31
32 <para os="a">Prepare Grep for compilation:</para>
33
34<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
35
36 <para os="c">Compile the package:</para>
37
38<screen os="d"><userinput>make</userinput></screen>
39
40 <para os="e">To test the results, issue:</para>
41
42<screen os="e2"><userinput remap="test">make check</userinput></screen>
43
44 <para os="f">Install the package:</para>
45
46<screen os="g"><userinput>make install</userinput></screen>
47
48 </sect2>
49
50 <sect2 id="contents-grep" role="content">
51 <title>Contents of Grep</title>
52
53 <segmentedlist>
54 <segtitle>Installed programs</segtitle>
55
56 <seglistitem>
57 <seg>egrep, fgrep, grep</seg>
58 </seglistitem>
59 </segmentedlist>
60
61 <variablelist>
62 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
63 <?dbfo list-presentation="list"?>
64 <?dbhtml list-presentation="table"?>
65
66 <varlistentry id="egrep">
67 <term><command>egrep</command></term>
68 <listitem>
69 <para>Prints lines matching an extended regular expression</para>
70 <indexterm zone="ch-system-grep egrep">
71 <primary sortas="b-egrep">egrep</primary>
72 </indexterm>
73 </listitem>
74 </varlistentry>
75
76 <varlistentry id="fgrep">
77 <term><command>fgrep</command></term>
78 <listitem>
79 <para>Prints lines matching a list of fixed strings</para>
80 <indexterm zone="ch-system-grep fgrep">
81 <primary sortas="b-fgrep">fgrep</primary>
82 </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">
91 <primary sortas="b-grep">grep</primary>
92 </indexterm>
93 </listitem>
94 </varlistentry>
95
96 </variablelist>
97
98 </sect2>
99
100</sect1>
Note: See TracBrowser for help on using the repository browser.