.. include:: ../header.txt .. _tee: :command:`tee` =========================== .. index:: tee .. program:: tee .. describe:: tee Copy standard input to each FILE, and also to standard output. SYNOPSIS :command:`tee` [-a] [FILE]... OPTIONS .. option:: -a, --append append to the given FILEs, do not overwrite :command:`tee` is useful for debugging complex pipeline commands and for achieving intermediate results. EXAMPLE :: $ who | tee who$(date +"%F-%T").txt | sort