Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

tee into file

foo | tee output.file
For example, if you only care about stdout:

ls -a | tee output.file
If you want to include stderr, do:

program [arguments...] 2>&1 | tee outfile
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tee #file
ADD COMMENT
Topic
Name
9+6 =