/[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 564 by ph10, Sat Oct 30 18:37:47 2010 UTC revision 565 by ph10, Sun Oct 31 18:18:48 2010 UTC
# Line 346  the previous 8K characters (or all the p Line 346  the previous 8K characters (or all the p
346  are guaranteed to be available for lookbehind assertions. This option does not  are guaranteed to be available for lookbehind assertions. This option does not
347  work when input is read line by line (see \fP--line-buffered\fP.)  work when input is read line by line (see \fP--line-buffered\fP.)
348  .TP  .TP
349  \fB-N\fP \fInewline-type\fP, \fB--newline=\fP\fInewline-type\fP  \fB-N\fP \fInewline-type\fP, \fB--newline\fP=\fInewline-type\fP
350  The PCRE library supports five different conventions for indicating  The PCRE library supports five different conventions for indicating
351  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)
352  and LF (linefeed), the two-character sequence CRLF, an "anycrlf" convention,  and LF (linefeed), the two-character sequence CRLF, an "anycrlf" convention,
# Line 372  output, it precedes the line number. Thi Line 372  output, it precedes the line number. Thi
372  \fB--line-offsets\fP is used.  \fB--line-offsets\fP is used.
373  .TP  .TP
374  \fB-o\fP, \fB--only-matching\fP  \fB-o\fP, \fB--only-matching\fP
375  Show only the part of the line that matched a pattern. In this mode, no  Show only the part of the line that matched a pattern instead of the whole
376  context is shown. That is, the \fB-A\fP, \fB-B\fP, and \fB-C\fP options are  line. In this mode, no context is shown. That is, the \fB-A\fP, \fB-B\fP, and
377  ignored. If there is more than one match in a line, each of them is shown  \fB-C\fP options are ignored. If there is more than one match in a line, each
378  separately. If \fB-o\fP is combined with \fB-v\fP (invert the sense of the  of them is shown separately. If \fB-o\fP is combined with \fB-v\fP (invert the
379  match to find non-matching lines), no output is generated, but the return code  sense of the match to find non-matching lines), no output is generated, but the
380  is set appropriately. This option is mutually exclusive with  return code is set appropriately. If the matched portion of the line is empty,
381  \fB--file-offsets\fP and \fB--line-offsets\fP.  nothing is output unless the file name or line number are being printed, in
382    which case they are shown on an otherwise empty line. This option is mutually
383    exclusive with \fB--file-offsets\fP and \fB--line-offsets\fP.
384    .TP
385    \fB-o\fP\fInumber\fP, \fB--only-matching\fP=\fInumber\fP
386    Show only the part of the line that matched the capturing parentheses of the
387    given number. Up to 32 capturing parentheses are supported. Because these
388    options can be given without an argument (see above), if an argument is
389    present, it must be given in the same shell item, for example, -o3 or
390    --only-matching=2. The comments given for the non-argument case above also
391    apply to this case. If the specified capturing parentheses do not exist in the
392    pattern, or were not set in the match, nothing is output unless the file name
393    or line number are being printed.
394  .TP  .TP
395  \fB-q\fP, \fB--quiet\fP  \fB-q\fP, \fB--quiet\fP
396  Work quietly, that is, display nothing except error messages. The exit  Work quietly, that is, display nothing except error messages. The exit
# Line 525  Cambridge CB2 3QH, England. Line 537  Cambridge CB2 3QH, England.
537  .rs  .rs
538  .sp  .sp
539  .nf  .nf
540  Last updated: 30 October 2010  Last updated: 31 October 2010
541  Copyright (c) 1997-2010 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
542  .fi  .fi

Legend:
Removed from v.564  
changed lines
  Added in v.565

  ViewVC Help
Powered by ViewVC 1.1.5