Thursday, January 9, 2014

Redirect command output to both stdout and file

The linux command tee read from standard input and write to standard output and files.

Example:
$ ls | tee filelist.txt