grep-devel
[Top][All Lists]
Advanced

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

Re: DRAFT: PROPOSAL: Add option 'piped-list' to read file list from stdi


From: Gary Johnson
Subject: Re: DRAFT: PROPOSAL: Add option 'piped-list' to read file list from stdin
Date: Tue, 26 Apr 2022 08:19:37 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

On 2022-04-26, José Bollo wrote:
> On Tue, 26 Apr 2022 08:32:30 -0600 arnold wrote:
> 
> > Just use xargs .... :-)
> 
> hum? how? In one case it is just the same as using $() from the shell
> (but less direct). In the other case, you use -n 1 and it add one
> more fork. So IMHO in both cases there is no advantages to use xargs.

This does what you want:

    file . [condition] | xargs grep -pl EXPR

This situation is what xargs is for.  I don't understand the problem
with it.

Regards,
Gary




reply via email to

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