Re: Bash script piping question



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

.