grep.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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">
  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. <para>The Grep package contains programs for searching through files.</para>
  11. <screen>&buildtime; 0.1 SBU
  12. &diskspace; 5.8 MB</screen>
  13. <para>Grep installation depends on: Bash, Binutils, Coreutils,
  14. Diffutils, GCC, Gettext, Glibc, Make, Sed, Texinfo.</para>
  15. <sect2>
  16. <title>Installation of Grep</title>
  17. <para>Prepare Grep for compilation:</para>
  18. <screen><userinput>./configure --prefix=/usr --bindir=/bin --with-included-regex</userinput></screen>
  19. <para>Compile the package:</para>
  20. <screen><userinput>make</userinput></screen>
  21. <para>To test the results, issue:
  22. <userinput>make check</userinput>.</para>
  23. <para>Now install the package:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. </sect2>
  26. <sect2 id="contents-grep"><title>Contents of Grep</title>
  27. <para><emphasis>Installed programs</emphasis>: egrep (link to grep), fgrep
  28. (link to grep) and grep</para>
  29. </sect2>
  30. <sect2><title>Short descriptions</title>
  31. <indexterm zone="ch-system-grep egrep"><primary sortas="b-egrep">egrep</primary></indexterm>
  32. <para id="egrep"><command>egrep</command> prints lines matching an extended regular
  33. expression.</para>
  34. <indexterm zone="ch-system-grep fgrep"><primary sortas="b-fgrep">fgrep</primary></indexterm>
  35. <para id="fgrep"><command>fgrep</command> prints lines matching a list of fixed
  36. strings.</para>
  37. <indexterm zone="ch-system-grep grep"><primary sortas="b-grep">grep</primary></indexterm>
  38. <para id="grep"><command>grep</command> prints lines matching a basic regular
  39. expression.</para>
  40. </sect2>
  41. </sect1>