help-bash
[Top][All Lists]
Advanced

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

Re: pipe or process substitution


From: Greg Wooledge
Subject: Re: pipe or process substitution
Date: Fri, 12 Mar 2021 10:48:01 -0500

On Fri, Mar 12, 2021 at 11:15:35AM +0100, Pascal wrote:
> hi everybody,
> which is the better of the two commands below ?
> strings myfile | grep regexp
> grep regexp <( strings myfile)

What are you REALLY trying to do?

In this example, the first one is marginally more efficient.  Does that
make it "better"?  Who knows.  We don't know what you mean by "better".

In real life, the needs of the script may point to the second one instead.
It depends on what you're doing.



reply via email to

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