Thursday, May 19, 2016

Copy command output data to standard output and to a file

Use the tee command:   $ [COMMAND] | tee [OUTPUT.FILE]   Where:   [COMMAND] is the command you want to execute. [OUTPUT.FILE] is the file you want to write in.     Variation for writing the standard error output:   $ [COMMAND] 2>&1 | tee [OUTPUT.FILE]   Where:   [COMMAND] is the command you want to execute.  [OUTPUT.FILE] is the file you want to...

Monday, May 9, 2016

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.