| 270 |
</P> |
</P> |
| 271 |
<P> |
<P> |
| 272 |
<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> |
| 273 |
The PCRE library supports four different conventions for indicating |
The PCRE library supports five different conventions for indicating |
| 274 |
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) |
| 275 |
and LF (linefeed), the two-character sequence CRLF, and an "any" convention, in |
and LF (linefeed), the two-character sequence CRLF, an "anycrlf" convention, |
| 276 |
|
which recognizes any of the preceding three types, and an "any" convention, in |
| 277 |
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 |
| 278 |
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 |
| 279 |
(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 |
| 280 |
PS (paragraph separator, U+0029). |
PS (paragraph separator, U+2029). |
| 281 |
<br> |
<br> |
| 282 |
<br> |
<br> |
| 283 |
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. |
| 284 |
This is normally the standard sequence for the operating system. Unless |
This is normally the standard sequence for the operating system. Unless |
| 285 |
otherwise specified by this option, <b>pcregrep</b> uses the library's default. |
otherwise specified by this option, <b>pcregrep</b> uses the library's default. |
| 286 |
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 |
| 287 |
possible to use <b>pcregrep</b> on files that have come from other environments |
makes it possible to use <b>pcregrep</b> on files that have come from other |
| 288 |
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 |
| 289 |
does not agree with the convention set by this option, <b>pcregrep</b> may |
being scanned does not agree with the convention set by this option, |
| 290 |
behave in strange ways. |
<b>pcregrep</b> may behave in strange ways. |
| 291 |
</P> |
</P> |
| 292 |
<P> |
<P> |
| 293 |
<b>-n</b>, <b>--line-number</b> |
<b>-n</b>, <b>--line-number</b> |
| 432 |
</P> |
</P> |
| 433 |
<br><a name="SEC12" href="#TOC1">REVISION</a><br> |
<br><a name="SEC12" href="#TOC1">REVISION</a><br> |
| 434 |
<P> |
<P> |
| 435 |
Last updated: 06 March 2007 |
Last updated: 16 April 2007 |
| 436 |
<br> |
<br> |
| 437 |
Copyright © 1997-2007 University of Cambridge. |
Copyright © 1997-2007 University of Cambridge. |
| 438 |
<br> |
<br> |