Java Jirawat
Jirawat Uttayaya Tech Notes
SyntaxHighlighter JS
2013-01-13
Log Unix output to screen and file simultaneously
To show Unix commands output on the console screen and log it in a text file at the same time, use the
tee
command.
For example, to show the result of a grep command on-screen and write it to a log file:
grep word file.txt | tee filegrep.log
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment