Merge pull request #95 from alexberry/teeappend

Append, not amend.
pull/97/head
Igor Chubin 4 years ago committed by GitHub
commit 1a4eca569b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,8 @@
# Display `ls` output to the user, but also write it to the given file.
ls | tee outfile.txt
# As above, but amend the data; previous file's data remains in-tact.
# As above, but append the data; previous file's data remains intact while
# new data is added at the end of the file.
ls | tee -a outfile.txt
# Pipe the standard output of a given command into `tee`, which then displays

Loading…
Cancel
Save