grep.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <sect1info condition="script">
  10. <productname>grep</productname>
  11. <productnumber>&grep-version;</productnumber>
  12. <address>&grep-url;</address>
  13. </sect1info>
  14. <title>Grep-&grep-version;</title>
  15. <indexterm zone="ch-system-grep">
  16. <primary sortas="a-Grep">Grep</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Grep package contains programs for searching through files.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&grep-ch6-sbu;</seg>
  26. <seg>&grep-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Grep</title>
  32. <para>First fix a potential security issue identified upstream:</para>
  33. <screen><userinput remap="configure">sed -i -e '/tp++/a if (ep &lt;= tp) break;' src/kwset.c</userinput></screen>
  34. <para>Prepare Grep for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
  36. <para>Compile the package:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>To test the results, issue:</para>
  39. <screen><userinput remap="test">make check</userinput></screen>
  40. <para>The test-update-copyright.sh failure can be ignored.</para>
  41. <para>Install the package:</para>
  42. <screen><userinput remap="install">make install</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-grep" role="content">
  45. <title>Contents of Grep</title>
  46. <segmentedlist>
  47. <segtitle>Installed programs</segtitle>
  48. <seglistitem>
  49. <seg>egrep, fgrep, and grep</seg>
  50. </seglistitem>
  51. </segmentedlist>
  52. <variablelist>
  53. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  54. <?dbfo list-presentation="list"?>
  55. <?dbhtml list-presentation="table"?>
  56. <varlistentry id="egrep">
  57. <term><command>egrep</command></term>
  58. <listitem>
  59. <para>Prints lines matching an extended regular expression</para>
  60. <indexterm zone="ch-system-grep egrep">
  61. <primary sortas="b-egrep">egrep</primary>
  62. </indexterm>
  63. </listitem>
  64. </varlistentry>
  65. <varlistentry id="fgrep">
  66. <term><command>fgrep</command></term>
  67. <listitem>
  68. <para>Prints lines matching a list of fixed strings</para>
  69. <indexterm zone="ch-system-grep fgrep">
  70. <primary sortas="b-fgrep">fgrep</primary>
  71. </indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="grep">
  75. <term><command>grep</command></term>
  76. <listitem>
  77. <para>Prints lines matching a basic regular expression</para>
  78. <indexterm zone="ch-system-grep grep">
  79. <primary sortas="b-grep">grep</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. </variablelist>
  84. </sect2>
  85. </sect1>