Documented in Volume 1 of the UNIX Programmers Manual.
% sort /etc/passwd | tee sorted.data sorts the password file, lists it at the terminal, and at the same time, captures it in the file sorted.data
HINT: tee is usually used in a pipe arrangement.
% tee x accepts input from the keyboard, lists it to the standard output, simultaneously storing it into file x.
% cat /dev/null | tee x1 x2 x3 x4 is a convenient way to quickly create three null files named x1, x2 and x3.
To Index