[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
possible in bash?: filter stderr of a prog & send filtered-output out on
From: |
L A Walsh |
Subject: |
possible in bash?: filter stderr of a prog & send filtered-output out on stderr leaving stdout untouched |
Date: |
Tue, 06 Dec 2016 14:09:01 -0800 |
User-agent: |
Thunderbird |
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
like this:
$prog >&3 2>&1 |grep -v "$RE_filt" >&2 3>&1
(which of course doesn't work)....
Is it possible/doable?
Tnx!
-l
- possible in bash?: filter stderr of a prog & send filtered-output out on stderr leaving stdout untouched,
L A Walsh <=