Hi,
I am using GNU grep 2.5.1, so maybe this has been fixed by now.
Bug: ‘grep –e <pattern1> -e <pattern2> <file>’ sometimes doesn’t show all of the matches for one pattern.
Example: ‘grep –e blah –e stuff <file>’ finds all “blah”, but only some of “stuff”, when <file> contains lots of “blah” and only a few “stuff” mixed in.
As an alternative that works, I used ‘grep –E ‘<pattern1>|<patter2>’ <file>’
Andrew Browne