grep.xml 2.5 KB

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