I would like to process STDERR
with sed
on the fly
A program gives me wrong information on STDERR
, my goal is to correct that information.
So far I have tried this:
$ perl -e 'print STDERR "bar says that foo has to disappear"' 2> >(sed s/foo/.../)
Unfortunately, something weird happened, the output I get is this:
$ perl -e 'print STDERR "bar says that foo has to disappear"' 2> >(sed s/foo/.../)
$ bar says that ... has to disappear
You can notice my prompt is printed before the output. How to correct this?