Difference between revisions of "Tip 5: tee"

From Vlsiwiki
Jump to: navigation, search
(New page: 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 benchmar...)
 
 
Line 3: Line 3:
 
to a file.
 
to a file.
  
myprog benchmark1.dat | tee benchmark1.log
+
myprog benchmark1.dat | tee benchmark1.log
  
 
Then stdout will display to the screen and to a file.
 
Then stdout will display to the screen and to a file.

Latest revision as of 00:11, 6 March 2009

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.