Re: Bash script piping question

On Sun, 18 Dec 2005 20:31:46 -0500, Dan Ganek wrote this:

> noi wrote:
>> I'd like to pass output from a command to stdout and a pipe.
>> Like in $ cat test.file | if grep word ; then do; but I'd like to see
>> all of the output from the cat command as well as pass that output to
>> the grep test.
>> Anyone know how to do that?
>> TIA
> man tee

Nope doesn't work. An output file is needed for the tee command to work.
So I'd have to cat the output file instead of seeing the stdout.