bug-grep
[Top][All Lists]
Advanced

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

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


From: Tony Abou-Assaleh
Subject: Re: RFC: invert-match with files-with-matches
Date: Thu, 20 Jul 2006 16:29:55 -0300 (ADT)

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:    address@hidden
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
>
>




reply via email to

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