grep.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-grep" xreflabel="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, 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>Now install the package:</para>
  32. <screen><userinput>make install</userinput></screen>
  33. </sect2>
  34. <sect2 id="contents-grep"><title>Contents of Grep</title>
  35. <para><emphasis>Installed programs</emphasis>: egrep (link to grep), fgrep
  36. (link to grep) and grep</para>
  37. </sect2>
  38. <sect2><title>Short descriptions</title>
  39. <indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
  40. <para id="egrep"><command>egrep</command> prints lines matching an extended regular
  41. expression.</para>
  42. <indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
  43. <para id="fgrep"><command>fgrep</command> prints lines matching a list of fixed
  44. strings.</para>
  45. <indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
  46. <para id="grep"><command>grep</command> prints lines matching a basic regular
  47. expression.</para>
  48. </sect2>
  49. </sect1>