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

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

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

revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 150 by ph10, Tue Apr 17 08:22:40 2007 UTC
# Line 220  the previous 8K characters (or all the p Line 220  the previous 8K characters (or all the p
220  are guaranteed to be available for lookbehind assertions.  are guaranteed to be available for lookbehind assertions.
221  .TP  .TP
222  \fB-N\fP \fInewline-type\fP, \fB--newline=\fP\fInewline-type\fP  \fB-N\fP \fInewline-type\fP, \fB--newline=\fP\fInewline-type\fP
223  The PCRE library supports four different conventions for indicating  The PCRE library supports five different conventions for indicating
224  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)
225  and LF (linefeed), the two-character sequence CRLF, and an "any" convention, in  and LF (linefeed), the two-character sequence CRLF, an "anycrlf" convention,
226    which recognizes any of the preceding three types, and an "any" convention, in
227  which any Unicode line ending sequence is assumed to end a line. The Unicode  which any Unicode line ending sequence is assumed to end a line. The Unicode
228  sequences are the three just mentioned, plus VT (vertical tab, U+000B), FF  sequences are the three just mentioned, plus VT (vertical tab, U+000B), FF
229  (formfeed, U+000C), NEL (next line, U+0085), LS (line separator, U+2028), and  (formfeed, U+000C), NEL (next line, U+0085), LS (line separator, U+2028), and
230  PS (paragraph separator, U+0029).  PS (paragraph separator, U+2029).
231  .sp  .sp
232  When the PCRE library is built, a default line-ending sequence is specified.  When the PCRE library is built, a default line-ending sequence is specified.
233  This is normally the standard sequence for the operating system. Unless  This is normally the standard sequence for the operating system. Unless
234  otherwise specified by this option, \fBpcregrep\fP uses the library's default.  otherwise specified by this option, \fBpcregrep\fP uses the library's default.
235  The possible values for this option are CR, LF, CRLF, or ANY. This makes it  The possible values for this option are CR, LF, CRLF, ANYCRLF, or ANY. This
236  possible to use \fBpcregrep\fP on files that have come from other environments  makes it possible to use \fBpcregrep\fP on files that have come from other
237  without having to modify their line endings. If the data that is being scanned  environments without having to modify their line endings. If the data that is
238  does not agree with the convention set by this option, \fBpcregrep\fP may  being scanned does not agree with the convention set by this option,
239  behave in strange ways.  \fBpcregrep\fP may behave in strange ways.
240  .TP  .TP
241  \fB-n\fP, \fB--line-number\fP  \fB-n\fP, \fB--line-number\fP
242  Precede each output line by its line number in the file, followed by a colon  Precede each output line by its line number in the file, followed by a colon
# Line 280  the patterns are the ones that are found Line 281  the patterns are the ones that are found
281  Force the patterns to match only whole words. This is equivalent to having \eb  Force the patterns to match only whole words. This is equivalent to having \eb
282  at the start and end of the pattern.  at the start and end of the pattern.
283  .TP  .TP
284  \fB-x\fP, \fB--line-regex\fP, \fP--line-regexp\fP  \fB-x\fP, \fB--line-regex\fP, \fB--line-regexp\fP
285  Force the patterns to be anchored (each must start matching at the beginning of  Force the patterns to be anchored (each must start matching at the beginning of
286  a line) and in addition, require them to match entire lines. This is  a line) and in addition, require them to match entire lines. This is
287  equivalent to having ^ and $ characters at the start and end of each  equivalent to having ^ and $ characters at the start and end of each
# Line 376  code. Line 377  code.
377  .SH AUTHOR  .SH AUTHOR
378  .rs  .rs
379  .sp  .sp
380    .nf
381  Philip Hazel  Philip Hazel
 .br  
382  University Computing Service  University Computing Service
 .br  
383  Cambridge CB2 3QH, England.  Cambridge CB2 3QH, England.
384  .P  .fi
385  .in 0  .
386  Last updated: 29 November 2006  .
387  .br  .SH REVISION
388  Copyright (c) 1997-2006 University of Cambridge.  .rs
389    .sp
390    .nf
391    Last updated: 16 April 2007
392    Copyright (c) 1997-2007 University of Cambridge.
393    .fi

Legend:
Removed from v.96  
changed lines
  Added in v.150

  ViewVC Help
Powered by ViewVC 1.1.5