Meng Lu's home page / computing / example / Examples of using tee Print command output including errors to multiple files and not screen echo "$(date)" 2>&1 | tee -a file1 file2 >/dev/null