cat * > /dev/null
Thursday, May 28, 2009
Dump terminal output to a file
Easy way to redirect the output of a command to both file and terminal:
bash$ my_command 2>&1 | tee my_log.txt
Great =)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment