Jump to Navigation

144 - tee command

Accept output from another command and send it both to standard output and to files (like a T or fork in the road).

Ex.

# top -b -d 1 -n 7 | tee top_resilt.txt

# ls *.txt | wc -l | tee count-02.txt count-01.txt

# ls -l | tee savefile.txt

Options :

-a, --append
     Append to files; do not overwrite.

-i, --ignore-interrupt
     Ignore interrupt signals.

--help
     Print a help message and then exit.

--version
     Print version information and then exit.

Linux:


Main menu 2

Story | by Dr. Radut