From d1fb8414f80b2eaf6be8d7c5220af6ce83a4eb89 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Sun, 22 Jun 2014 17:24:09 -0400 Subject: [PATCH] Added a `tee` cheatsheet --- cheat/cheatsheets/tee | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cheat/cheatsheets/tee 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