[Top][All Lists]

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

Re: RFC: invert-match with files-with-matches

From: Paul Eggert
Subject: Re: RFC: invert-match with files-with-matches
Date: Thu, 20 Jul 2006 15:50:18 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Felipe Kellermann <address@hidden> writes:

> Not exactly.  Just extending the utilities of a flag (invert).

Sorry, no, the standard is clear that the behavior you describe is
correct, and grep should not change from this.  -v directly affects
only whether matching lines are selected, so both "grep -vl foo bar"
and "grep -l foo bar" can (and typically will) output "bar".

You can use "grep -L foo bar" to get the behavior you want, assuming
you have GNU grep.

reply via email to

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