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: Andreas Schwab
Subject: Re: possible in bash?: filter stderr of a prog & send filtered-output out on stderr leaving stdout untouched
Date: Tue, 06 Dec 2016 23:51:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux)

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

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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