tee
The tee utility copies standard input to standard output, making a copy in zero or more files. The output is unbuffered.
Example:
echo "I am the very model of a modern Major General" | tee general.txt
I am the very model of a modern Major General # Output
cat general.txt
I am the very model of a modern Major General # Output