Command: tee
TEE saves a copy of the input (STDIN) to one or more files and prints it.
Syntax:
tee [options] [d:][path]file [[d:][path]file2] ...
[d:][path]file [[d:][path]file2] Specifies the output file(s).
Options:
/A Append to given file(s): Append to the output file(s) instead of
overwriting.
/I Ignore interruptions: ignores interruption attempts by a user.
Comments:
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.
Examples:
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
another_log.txt.
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.
See also:
more
undelete
Copyright © 2008 W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.