I can use tee to send output to both stdout and file like this:
./process.sh | tee output.log
How do i send complete output to stdout and grepped output to file?
This one won't work, because tee expects a second file argument:
./process.sh | tee | grep foo > output.log