SyntaxHighlighter JS


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