/[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 461 by ph10, Mon Oct 5 10:59:35 2009 UTC revision 519 by ph10, Fri May 21 16:43:17 2010 UTC
# Line 141  coloured. The value (which is optional, Line 141  coloured. The value (which is optional,
141  connected to a terminal. More resources are used when colouring is enabled,  connected to a terminal. More resources are used when colouring is enabled,
142  because \fBpcregrep\fP has to search for all possible matches in a line, not  because \fBpcregrep\fP has to search for all possible matches in a line, not
143  just one, in order to colour them all.  just one, in order to colour them all.
144    .sp
145  The colour that is used can be specified by setting the environment variable  The colour that is used can be specified by setting the environment variable
146  PCREGREP_COLOUR or PCREGREP_COLOR. The value of this variable should be a  PCREGREP_COLOUR or PCREGREP_COLOR. The value of this variable should be a
147  string of two numbers, separated by a semicolon. They are copied directly into  string of two numbers, separated by a semicolon. They are copied directly into
# Line 282  This option supplies a name to be used f Line 282  This option supplies a name to be used f
282  are being output. If not supplied, "(standard input)" is used. There is no  are being output. If not supplied, "(standard input)" is used. There is no
283  short form for this option.  short form for this option.
284  .TP  .TP
285    \fB--line-buffered\fP
286    When this option is given, input is read and processed line by line, and the
287    output is flushed after each write. By default, input is read in large chunks,
288    unless \fBpcregrep\fP can determine that it is reading from a terminal (which
289    is currently possible only in Unix environments). Output to terminal is
290    normally automatically flushed by the operating system. This option can be
291    useful when the input or output is attached to a pipe and you do not want
292    \fBpcregrep\fP to buffer up large amounts of data. However, its use will affect
293    performance, and the \fB-M\fP (multiline) option ceases to work.
294    .TP
295  \fB--line-offsets\fP  \fB--line-offsets\fP
296  Instead of showing lines or parts of lines that match, show each match as a  Instead of showing lines or parts of lines that match, show each match as a
297  line number, the offset from the start of the line, and a length. The line  line number, the offset from the start of the line, and a length. The line
# Line 307  that \fBpcregrep\fP buffers the input fi Line 317  that \fBpcregrep\fP buffers the input fi
317  \fBpcregrep\fP ensures that at least 8K characters or the rest of the document  \fBpcregrep\fP ensures that at least 8K characters or the rest of the document
318  (whichever is the shorter) are available for forward matching, and similarly  (whichever is the shorter) are available for forward matching, and similarly
319  the previous 8K characters (or all the previous characters, if fewer than 8K)  the previous 8K characters (or all the previous characters, if fewer than 8K)
320  are guaranteed to be available for lookbehind assertions.  are guaranteed to be available for lookbehind assertions. This option does not
321    work when input is read line by line (see \fP--line-buffered\fP.)
322  .TP  .TP
323  \fB-N\fP \fInewline-type\fP, \fB--newline=\fP\fInewline-type\fP  \fB-N\fP \fInewline-type\fP, \fB--newline=\fP\fInewline-type\fP
324  The PCRE library supports five different conventions for indicating  The PCRE library supports five different conventions for indicating
# Line 485  Cambridge CB2 3QH, England. Line 496  Cambridge CB2 3QH, England.
496  .rs  .rs
497  .sp  .sp
498  .nf  .nf
499  Last updated: 13 September 2009  Last updated: 21 May 2010
500  Copyright (c) 1997-2009 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
501  .fi  .fi

Legend:
Removed from v.461  
changed lines
  Added in v.519

  ViewVC Help
Powered by ViewVC 1.1.5