source: chapter08/grep.xml@ b17680d

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng 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 b17680d was b17680d, checked in by Bruce Dubbs <bdubbs@…>, 20 months ago

Package updates and corrections.
Update to file-5.43.
Update to linux-5.19.8.
Update to gawk-5.2.0.
Update to meson-0.63.2.
Update to ninja-1.11.1.
Update to bc-6.0.2.
Fix the location of udev rules in eudev.
Remove a warning for egrep and fgrep that
Delete an empty binutils man page.

  • Property mode set to 100644
File size: 3.3 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 <sect1info condition="script">
12 <productname>grep</productname>
13 <productnumber>&grep-version;</productnumber>
14 <address>&grep-url;</address>
15 </sect1info>
16
17 <title>Grep-&grep-version;</title>
18
19 <indexterm zone="ch-system-grep">
20 <primary sortas="a-Grep">Grep</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Grep package contains programs for searching through the contents of files.</para>
27
28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
31
32 <seglistitem>
33 <seg>&grep-fin-sbu;</seg>
34 <seg>&grep-fin-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Grep</title>
42
43 <para>
44 First, remove a warning about using egrep and fgrep that makes
45 tests on some packages fail:
46 </para>
47
48<screen><userinput remap="pre">sed -i "s/echo/#echo/" src/egrep.sh</userinput></screen>
49
50 <para>Prepare Grep for compilation:</para>
51
52<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
53
54 <para>Compile the package:</para>
55
56<screen><userinput remap="make">make</userinput></screen>
57
58 <para>To test the results, issue:</para>
59
60<screen><userinput remap="test">make check</userinput></screen>
61
62 <para>Install the package:</para>
63
64<screen><userinput remap="install">make install</userinput></screen>
65
66 </sect2>
67
68 <sect2 id="contents-grep" role="content">
69 <title>Contents of Grep</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73
74 <seglistitem>
75 <seg>egrep, fgrep, and grep</seg>
76 </seglistitem>
77 </segmentedlist>
78
79 <variablelist>
80 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
81 <?dbfo list-presentation="list"?>
82 <?dbhtml list-presentation="table"?>
83
84 <varlistentry id="egrep">
85 <term><command>egrep</command></term>
86 <listitem>
87 <para>Prints lines matching an extended regular expression.
88 It is obsolete, use <command>grep -E</command> instead</para>
89 <indexterm zone="ch-system-grep egrep">
90 <primary sortas="b-egrep">egrep</primary>
91 </indexterm>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry id="fgrep">
96 <term><command>fgrep</command></term>
97 <listitem>
98 <para>Prints lines matching a list of fixed strings.
99 It is obsolete, use <command>grep -F</command> instead</para>
100 <indexterm zone="ch-system-grep fgrep">
101 <primary sortas="b-fgrep">fgrep</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="grep">
107 <term><command>grep</command></term>
108 <listitem>
109 <para>Prints lines matching a basic regular expression</para>
110 <indexterm zone="ch-system-grep grep">
111 <primary sortas="b-grep">grep</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 </variablelist>
117
118 </sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.