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).


# 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.

     Print a help message and then exit.

     Print version information and then exit.


Main menu 2

Story | by Dr. Radut