[Top][All Lists]

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

RFC: invert-match with files-with-matches

From: Felipe Kellermann
Subject: RFC: invert-match with files-with-matches
Date: Thu, 20 Jul 2006 16:18:41 -0300 (BRT)
User-agent: Pine <http://www.washington.edu/pine/>

  % grep -l '\bfelipek\b' /etc/passwd
  % grep -vl '\bfelipek\b' /etc/passwd

Opinions?  Reading the standard I see there is no mention (perhaps this is 
an issue to also discuss with the POSIX / SuS / OpenGroup people) of this 
combination of flags in STDOUT section.  I think that applying inversion 
in files-with-matches would be nice. Today we have to script the listing:

  % grep -q 'felipek' /etc/passwd || echo /etc/passwd

Felipe Kellermann

reply via email to

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