bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep: Listing files without lines matching a pattern


From: Michael Grünewald
Subject: grep: Listing files without lines matching a pattern
Date: Wed, 12 Nov 2014 08:41:12 +0100
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1

In my version of GNU grep (see below) using both *-l* and *-v* (in that
order) leads to *-v* being silently ignored.

My intent by using *-l* and *-v* was to achieve the effect of *-L*,
listing files without lines matching a pattern.  Seeing the option *-v*
being silently ignored in this context is a surprising effect, which
should be documented and maybe could lead *grep* to fail with a “Usage”
error.

Best regards,
Michael Grünewald


grep --version
grep (GNU grep) 2.5.1-FreeBSD

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]