diff --git a/cheat/cheatsheets/tee b/cheat/cheatsheets/tee new file mode 100644 index 0000000..301d4df --- /dev/null +++ b/cheat/cheatsheets/tee @@ -0,0 +1,5 @@ +# To tee stdout to a file: +ls | tee outfile.txt + +# To tee stdout and append to a file: +ls | tee -a outfile.txt