tee
Program: tee
Writes its input to the screen and into files.
Usage
tee [OPTION]... [FILE]...
Description
Copy what comes from the keyboard or pipe to standard output and into every FILE.
Options in the simulator
4 more options of the real program, not in the simulator yet
Examples
ls cache | tee inventory.txt
a.tmp
b.tmp
keep.log
old report.tmp
echo "checked 09:45" | tee -a inventory.txt
checked 09:45
cat inventory.txt
a.tmp
b.tmp
keep.log
old report.tmp
checked 09:45 Where you learn it
Lessons
- Branching off and passing on Linux Basics, Module 4: Pipes and redirection