The behaviour in the example below looks correct to me since passwd contains lines that don't match your expression. It sounds like you are proposing a new option to invert printing of file names.
To date, the general policy (imposed by senior people on the list, whatever that means) was not to introduce new functionality to grep that can be accomplished using other standard *nix tools. Cheers, TAA ----------------------------------------------------- Tony Abou-Assaleh Email: [EMAIL PROTECTED] Web site: http://taa.eits.ca ----------------------[THE END]---------------------- On Thu, 20 Jul 2006, Felipe Kellermann wrote: > > % grep -l '\bfelipek\b' /etc/passwd > /etc/passwd > % grep -vl '\bfelipek\b' /etc/passwd > /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 > >
