Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   pcregrep    ( 1 )

grep с регулярными выражениями, совместимыми с Perl (a grep with Perl-compatible regular expressions.)

NEWLINES

The -N (--newline) option allows pcregrep to scan files with
       different newline conventions from the default. Any parts of the
       input files that are written to the standard output are copied
       identically, with whatever newline sequences they have in the
       input. However, the setting of this option does not affect the
       interpretation of files specified by the -f, --exclude-from, or
       --include-from options, which are assumed to use the operating
       system's standard newline sequence, nor does it affect the way in
       which pcregrep writes informational messages to the standard
       error and output streams. For these it uses the string "\n" to
       indicate newlines, relying on the C I/O library to convert this
       to an appropriate sequence.