tee -a output.txt

Category: File Viewing & Editing

tee -a output.txt

Append stdin to a file while also printing to stdout

Like tee but adds to the end of an existing file instead of overwriting it. -a means 'append'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.