that'll be the "tee" command.
echo test | tee blah
should echo the word "test" but also write to the file called "blah". note that that will by default only cover stdout, not stderr too, so you'd need to redirect stderr to stdout beforehand:
echo 2>&1 test | tee blah
otherwise the blah file would only include stdout, not the error stream.
Last edited by acid_kewpie; 12-07-2006 at 05:36 PM.