tee - read from standard input and write to standard output and files.
The tee command is named after the T-splitter in plumbing, which splits water into two directions and is shaped like an uppercase T.
tee copies data from standard input to each FILE, and also to standard output. In effect, tee duplicates its input, routing it to multiple outputs at once.
Options | Description |
---|---|
-a, --append | Append to the given FILEs. Do not overwrite. |
-i, --ignore-interrupts | Ignore interrupt signals. |
--help | Display a help message, and exit. |
--version | Display version information, and exit. |
If a FILE is specified as a dash ("-"), tee writes again to standard output.