Why toss when you can label? Shell fu FTW.
for host in foo bar baz ; do { ssh $host echo 'I R OUT' \; echo 'I R ERROR' 1\>\&2 } > >( perl -l +ne "print qq{$host O: \$_}" ) 2> >( perl -lne "print qq{$host E: \$_} +" ) done
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Tag lines
by Fletch
in thread Tag lines
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |