bug-bash
[Top][All Lists]
Advanced

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

Re: possible in bash?: filter stderr of a prog & send filtered-output ou


From: L A Walsh
Subject: Re: possible in bash?: filter stderr of a prog & send filtered-output out on stderr leaving stdout untouched
Date: Tue, 06 Dec 2016 15:22:55 -0800
User-agent: Thunderbird



Andreas Schwab wrote:
{ $prog 2>&1 >&3 | grep -v "$RE_filt" >&2; } 3>&1

Andreas.
Closer to my last failed case:

   ( echo -n >&3 $($prog >&3 2>&1 | grep -Pv "$re" >&2 ) ) 3>&1

Had tried not putting $prog in $(), but bash didn't like the parens...

At that point figured it was probably solved and asked onlist...

Thanks for the added input!

-l




reply via email to

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