Hello,

I've tested the "grep -P" option on a model output of 10 GB.  The output 
consists of multi-line records, and I've used several variations of similar 
type commands:

Grep  -P "(?s)FIRES\-.*?;" filename

Grep  -P "(?s)\-INTERCEPTS.*?;" filename

Grep  -P "(?s)FIRES\-.*?(?=\n  \d)" filename

In all cases, comparison with the results from doing single-line grep command:

Grep  FIRES\- filename

Grep  \-INTERCEPTS filename

Grep  FIRES\- filename

Reveal dropping of a small percentage of output incidents that should have been 
matched.  Examination of the file showed nothing unusual with the dropped 
entries that would cause them to fail.
Because of this bug, the grep -P command cannot be used for accurate 
tabulations.

Has anyone reported such a bug?  Has it been corrected in later versions?

The grep -V command displays:
GNU  grep 2.5.1

Michael Souchick






Reply via email to