The tee command reads from standard input and writes to both standard output and one or more files at the same time.
Complete Story