/[pcre]/code/trunk/doc/html/pcregrep.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcregrep.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 428 by ph10, Tue Mar 17 21:30:30 2009 UTC revision 429 by ph10, Tue Sep 1 16:10:16 2009 UTC
# Line 119  standard input is always so treated. Line 119  standard input is always so treated.
119  </P>  </P>
120  <br><a name="SEC4" href="#TOC1">OPTIONS</a><br>  <br><a name="SEC4" href="#TOC1">OPTIONS</a><br>
121  <P>  <P>
122    The order in which some of the options appear can affect the output. For
123    example, both the <b>-h</b> and <b>-l</b> options affect the printing of file
124    names. Whichever comes later in the command line will be the one that takes
125    effect.
126    </P>
127    <P>
128  <b>--</b>  <b>--</b>
129  This terminate the list of options. It is useful if the next item on the  This terminate the list of options. It is useful if the next item on the
130  command line starts with a hyphen but is not an option. This allows for the  command line starts with a hyphen but is not an option. This allows for the
# Line 149  This is equivalent to setting both <b>-A Line 155  This is equivalent to setting both <b>-A
155  </P>  </P>
156  <P>  <P>
157  <b>-c</b>, <b>--count</b>  <b>-c</b>, <b>--count</b>
158  Do not output individual lines; instead just output a count of the number of  Do not output individual lines from the files that are being scanned; instead
159  lines that would otherwise have been output. If several files are given, a  output the number of lines that would otherwise have been shown. If no lines
160  count is output for each of them. In this mode, the <b>-A</b>, <b>-B</b>, and  are selected, the number zero is output. If several files are are being
161  <b>-C</b> options are ignored.  scanned, a count is output for each of them. However, if the
162    <b>--files-with-matches</b> option is also used, only those files whose counts
163    are greater than zero are listed. When <b>-c</b> is used, the <b>-A</b>,
164    <b>-B</b>, and <b>-C</b> options are ignored.
165  </P>  </P>
166  <P>  <P>
167  <b>--colour</b>, <b>--color</b>  <b>--colour</b>, <b>--color</b>
# Line 316  output once, on a separate line. Line 325  output once, on a separate line.
325  <b>-l</b>, <b>--files-with-matches</b>  <b>-l</b>, <b>--files-with-matches</b>
326  Instead of outputting lines from the files, just output the names of the files  Instead of outputting lines from the files, just output the names of the files
327  containing lines that would have been output. Each file name is output  containing lines that would have been output. Each file name is output
328  once, on a separate line. Searching stops as soon as a matching line is found  once, on a separate line. Searching normally stops as soon as a matching line
329  in a file.  is found in a file. However, if the <b>-c</b> (count) option is also used,
330    matching continues in order to obtain the correct count, and those files that
331    have at least one match are listed along with their counts. Using this option
332    with <b>-c</b> is a way of suppressing the listing of files with no matches.
333  </P>  </P>
334  <P>  <P>
335  <b>--label</b>=<i>name</i>  <b>--label</b>=<i>name</i>
# Line 462  The majority of short and long forms of Line 474  The majority of short and long forms of
474  as in the GNU <b>grep</b> program. Any long option of the form  as in the GNU <b>grep</b> program. Any long option of the form
475  <b>--xxx-regexp</b> (GNU terminology) is also available as <b>--xxx-regex</b>  <b>--xxx-regexp</b> (GNU terminology) is also available as <b>--xxx-regex</b>
476  (PCRE terminology). However, the <b>--locale</b>, <b>-M</b>, <b>--multiline</b>,  (PCRE terminology). However, the <b>--locale</b>, <b>-M</b>, <b>--multiline</b>,
477  <b>-u</b>, and <b>--utf-8</b> options are specific to <b>pcregrep</b>.  <b>-u</b>, and <b>--utf-8</b> options are specific to <b>pcregrep</b>. If both the
478    <b>-c</b> and <b>-l</b> options are given, GNU grep lists only file names,
479    without counts, but <b>pcregrep</b> gives the counts.
480  </P>  </P>
481  <br><a name="SEC8" href="#TOC1">OPTIONS WITH DATA</a><br>  <br><a name="SEC8" href="#TOC1">OPTIONS WITH DATA</a><br>
482  <P>  <P>
# Line 524  Cambridge CB2 3QH, England. Line 538  Cambridge CB2 3QH, England.
538  </P>  </P>
539  <br><a name="SEC13" href="#TOC1">REVISION</a><br>  <br><a name="SEC13" href="#TOC1">REVISION</a><br>
540  <P>  <P>
541  Last updated: 01 March 2009  Last updated: 12 August 2009
542  <br>  <br>
543  Copyright &copy; 1997-2009 University of Cambridge.  Copyright &copy; 1997-2009 University of Cambridge.
544  <br>  <br>

Legend:
Removed from v.428  
changed lines
  Added in v.429

  ViewVC Help
Powered by ViewVC 1.1.5