grep.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <sect1 id="ch-system-grep" role="wrap">
  8. <?dbhtml filename="grep.html"?>
  9. <title>Grep-&grep-version;</title>
  10. <indexterm zone="ch-system-grep">
  11. <primary sortas="a-Grep">Grep</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Grep package contains programs for searching through files.</para>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem>
  20. <seg>&grep-ch6-sbu;</seg>
  21. <seg>&grep-ch6-du;</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Grep</title>
  27. <para>The current Grep package has many bugs, especially in the support of
  28. multibyte locales. RedHat fixed some of them with the following patch:</para>
  29. <screen><userinput>patch -Np1 -i ../&grep-fixes-patch;</userinput></screen>
  30. <para>In order for the tests added by this patch to pass, the permissions for
  31. the test file have to be changed:</para>
  32. <screen><userinput>chmod +x tests/fmbtest.sh</userinput></screen>
  33. <para>Prepare Grep for compilation:</para>
  34. <screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>To test the results, issue:
  38. <userinput>make check</userinput>.</para>
  39. <para>Install the package:</para>
  40. <screen><userinput>make install</userinput></screen>
  41. </sect2>
  42. <sect2 id="contents-grep" role="content">
  43. <title>Contents of Grep</title>
  44. <segmentedlist>
  45. <segtitle>Installed programs</segtitle>
  46. <seglistitem>
  47. <seg>egrep, fgrep, and grep</seg>
  48. </seglistitem>
  49. </segmentedlist>
  50. <variablelist>
  51. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  52. <?dbfo list-presentation="list"?>
  53. <?dbhtml list-presentation="table"?>
  54. <varlistentry id="egrep">
  55. <term><command>egrep</command></term>
  56. <listitem>
  57. <para>Prints lines matching an extended regular expression</para>
  58. <indexterm zone="ch-system-grep egrep">
  59. <primary sortas="b-egrep">egrep</primary>
  60. </indexterm>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry id="fgrep">
  64. <term><command>fgrep</command></term>
  65. <listitem>
  66. <para>Prints lines matching a list of fixed strings</para>
  67. <indexterm zone="ch-system-grep fgrep">
  68. <primary sortas="b-fgrep">fgrep</primary>
  69. </indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="grep">
  73. <term><command>grep</command></term>
  74. <listitem>
  75. <para>Prints lines matching a basic regular expression</para>
  76. <indexterm zone="ch-system-grep grep">
  77. <primary sortas="b-grep">grep</primary>
  78. </indexterm>
  79. </listitem>
  80. </varlistentry>
  81. </variablelist>
  82. </sect2>
  83. </sect1>