Search for Tips & Tricks

Google
 

Thursday, January 24, 2008

How to redirect output to a file and stdout simultaneously

# How to redirect to stdout and a file

grep 2>&1 | tee

e.g.

grep India *.txt 2>&1|tee output.log

No comments: