tee
Read stdin and write to files and stdout.
Syntax
$tee [OPTIONS] [FILES]
Examples
Examples
$ls | tee filelist.txt
Examples
$echo 'test' | tee -a log.txt
Typical use cases
tee --help
man tee
Note
Use -a to append instead of overwrite.
Export