Tip 5: tee

From Vlsiwiki
Jump to: navigation, search

This is a handy utility that will let you "split" the output of a program. For example, if you want to see the output and also write it to a file.

myprog benchmark1.dat | tee benchmark1.log

Then stdout will display to the screen and to a file.