grep.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-grep" role="wrap">
  9. <title>Grep-&grep-version;</title>
  10. <?dbhtml filename="grep.html"?>
  11. <indexterm zone="ch-system-grep"><primary sortas="a-Grep">Grep</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Grep package contains programs for searching through files.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.1 SBU</seg><seg>5.8 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>&dependencies;</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Coreutils,
  22. Diffutils, GCC, Gettext, Glibc, Make, Sed, and Texinfo</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Grep</title>
  27. <para>Prepare Grep for compilation:</para>
  28. <screen><userinput>./configure --prefix=/usr --bindir=/bin --with-included-regex</userinput></screen>
  29. <para>Compile the package:</para>
  30. <screen><userinput>make</userinput></screen>
  31. <para>To test the results, issue:
  32. <userinput>make check</userinput>.</para>
  33. <para>Install the package:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. </sect2>
  36. <sect2 id="contents-grep" role="content"><title>Contents of Grep</title>
  37. <segmentedlist>
  38. <segtitle>Installed programs</segtitle>
  39. <seglistitem><seg>egrep (link to grep), fgrep (link to grep), and grep</seg></seglistitem>
  40. </segmentedlist>
  41. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  42. <?dbfo list-presentation="list"?>
  43. <?dbhtml list-presentation="table"?>
  44. <varlistentry id="egrep">
  45. <term><command>egrep</command></term>
  46. <listitem>
  47. <para>Prints lines matching an extended regular expression</para>
  48. <indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
  49. </listitem>
  50. </varlistentry>
  51. <varlistentry id="fgrep">
  52. <term><command>fgrep</command></term>
  53. <listitem>
  54. <para>Prints lines matching a list of fixed strings</para>
  55. <indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
  56. </listitem>
  57. </varlistentry>
  58. <varlistentry id="grep">
  59. <term><command>grep</command></term>
  60. <listitem>
  61. <para>Prints lines matching a basic regular expression</para>
  62. <indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
  63. </listitem>
  64. </varlistentry>
  65. </variablelist>
  66. </sect2>
  67. </sect1>