Unix command of the day: Tee posted April 2015
The tee command allow you to write to a file and still display the result in output.
For exemple
ls
display the content of the current folder in stdout (the terminal)
ls > file.txt
saves that in a file file.txt
ls | tee file.txt
saves that in a file file.txt
and displays in stdout at the same time
Comments
HG
Great explanation. Thanks!
leave a comment...