|Subject:||Re: possible in bash?: filter stderr of a prog & send filtered-output out on stderr leaving stdout untouched|
|Date:||Tue, 6 Dec 2016 16:30:16 -0600|
Is there a way, in bash, to filter stderr and let the
filtered result continue on stderr with the original
stdout being output on stdout?
with prog being the program to filter, and RE_filt being the
filtering _expression_, conceptually, I wanted to do something
$prog >&3 2>&1 |grep -v "$RE_filt" >&2 3>&1
(which of course doesn't work)....
Is it possible/doable?
|[Prev in Thread]||Current Thread||[Next in Thread]|