TEE saves a copy of the input (STDIN) to one or more files and prints it.
tee [options] [d:][path]file [[d:][path]file2] ...
[d:][path]file [[d:][path]file2] Specifies the output file(s).
/A Append to given file(s): Append to the output file(s) instead of
/I Ignore interruptions: ignores interruption attempts by a user.
TEE reads data from standard input and writes to standard output as
well as any files specified by the user.
TEE comes with two default builds. TEE.EXE is TEE build with kitten
support. _TEE.EXE is built without kitten.
echo "Hello, World!" | tee hello.txt
Displays "Hello, World!" on the screen and saves it to hello.txt.
tee log.txt another_log.txt < input.txt
Displays the contents of input.txt and save them to log.txt and
catdoc letter.doc | tee /I letter.txt | wc
Saves the contents of letter.doc as processed by catdoc to letter.txt
and passes them to wc to count the words.
Doesn't allow interruptions by a user.
Please read this command's lsm file also.
You will find the updated version (internet) here and
the version described in this manual page here.
The lsm file contains information about the name of the programmer,
the download site, and some other command related information.
Copyright © 2008 W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.