/[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 91 by nigel, Sat Feb 24 21:41:34 2007 UTC revision 93 by nigel, Sat Feb 24 21:41:42 2007 UTC
# Line 22  man page, in case the conversion went wr Line 22  man page, in case the conversion went wr
22  <li><a name="TOC7" href="#SEC7">OPTIONS WITH DATA</a>  <li><a name="TOC7" href="#SEC7">OPTIONS WITH DATA</a>
23  <li><a name="TOC8" href="#SEC8">MATCHING ERRORS</a>  <li><a name="TOC8" href="#SEC8">MATCHING ERRORS</a>
24  <li><a name="TOC9" href="#SEC9">DIAGNOSTICS</a>  <li><a name="TOC9" href="#SEC9">DIAGNOSTICS</a>
25  <li><a name="TOC10" href="#SEC10">AUTHOR</a>  <li><a name="TOC10" href="#SEC10">SEE ALSO</a>
26    <li><a name="TOC11" href="#SEC11">AUTHOR</a>
27  </ul>  </ul>
28  <br><a name="SEC1" href="#TOC1">SYNOPSIS</a><br>  <br><a name="SEC1" href="#TOC1">SYNOPSIS</a><br>
29  <P>  <P>
# Line 33  man page, in case the conversion went wr Line 34  man page, in case the conversion went wr
34  <b>pcregrep</b> searches files for character patterns, in the same way as other  <b>pcregrep</b> searches files for character patterns, in the same way as other
35  grep commands do, but it uses the PCRE regular expression library to support  grep commands do, but it uses the PCRE regular expression library to support
36  patterns that are compatible with the regular expressions of Perl 5. See  patterns that are compatible with the regular expressions of Perl 5. See
37  <a href="pcrepattern.html"><b>pcrepattern</b></a>  <a href="pcrepattern.html"><b>pcrepattern</b>(3)</a>
38  for a full description of syntax and semantics of the regular expressions that  for a full description of syntax and semantics of the regular expressions
39  PCRE supports.  that PCRE supports.
40  </P>  </P>
41  <P>  <P>
42  Patterns, whether supplied on the command line or in a separate file, are given  Patterns, whether supplied on the command line or in a separate file, are given
# Line 268  are guaranteed to be available for lookb Line 269  are guaranteed to be available for lookb
269  </P>  </P>
270  <P>  <P>
271  <b>-N</b> <i>newline-type</i>, <b>--newline=</b><i>newline-type</i>  <b>-N</b> <i>newline-type</i>, <b>--newline=</b><i>newline-type</i>
272  The PCRE library supports three different character sequences for indicating  The PCRE library supports four different conventions for indicating
273  the ends of lines. They are the single-character sequences CR (carriage return)  the ends of lines. They are the single-character sequences CR (carriage return)
274  and LF (linefeed), and the two-character sequence CR, LF. When the library is  and LF (linefeed), the two-character sequence CRLF, and an "any" convention, in
275  built, a default line-ending sequence is specified. This is normally the  which any Unicode line ending sequence is assumed to end a line. The Unicode
276  standard sequence for the operating system. Unless otherwise specified by this  sequences are the three just mentioned, plus VT (vertical tab, U+000B), FF
277  option, <b>pcregrep</b> uses the default. The possible values for this option  (formfeed, U+000C), NEL (next line, U+0085), LS (line separator, U+2028), and
278  are CR, LF, or CRLF. This makes it possible to use <b>pcregrep</b> on files that  PS (paragraph separator, U+0029).
279  have come from other environments without having to modify their line endings.  <br>
280  If the data that is being scanned does not agree with the convention set by  <br>
281  this option, <b>pcregrep</b> may behave in strange ways.  When the PCRE library is built, a default line-ending sequence is specified.
282    This is normally the standard sequence for the operating system. Unless
283    otherwise specified by this option, <b>pcregrep</b> uses the library's default.
284    The possible values for this option are CR, LF, CRLF, or ANY. This makes it
285    possible to use <b>pcregrep</b> on files that have come from other environments
286    without having to modify their line endings. If the data that is being scanned
287    does not agree with the convention set by this option, <b>pcregrep</b> may
288    behave in strange ways.
289  </P>  </P>
290  <P>  <P>
291  <b>-n</b>, <b>--line-number</b>  <b>-n</b>, <b>--line-number</b>
# Line 407  found in other files) or too many matchi Line 415  found in other files) or too many matchi
415  suppress error messages about inaccessble files does not affect the return  suppress error messages about inaccessble files does not affect the return
416  code.  code.
417  </P>  </P>
418  <br><a name="SEC10" href="#TOC1">AUTHOR</a><br>  <br><a name="SEC10" href="#TOC1">SEE ALSO</a><br>
419    <P>
420    <b>pcrepattern</b>(3), <b>pcretest</b>(1).
421    </P>
422    <br><a name="SEC11" href="#TOC1">AUTHOR</a><br>
423  <P>  <P>
424  Philip Hazel  Philip Hazel
425  <br>  <br>
426  University Computing Service  University Computing Service
427  <br>  <br>
428  Cambridge CB2 3QG, England.  Cambridge CB2 3QH, England.
429  </P>  </P>
430  <P>  <P>
431  Last updated: 06 June 2006  Last updated: 29 November 2006
432  <br>  <br>
433  Copyright &copy; 1997-2006 University of Cambridge.  Copyright &copy; 1997-2006 University of Cambridge.
434  <p>  <p>

Legend:
Removed from v.91  
changed lines
  Added in v.93

  ViewVC Help
Powered by ViewVC 1.1.5