From 67e91a371767e30cd3990ada6f21b6be61500e62 Mon Sep 17 00:00:00 2001 From: Like-all Date: Thu, 11 Sep 2014 18:37:41 +0400 Subject: [PATCH] common: tee --- pages/common/tee.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/common/tee.md diff --git a/pages/common/tee.md b/pages/common/tee.md new file mode 100644 index 000000000..14695c237 --- /dev/null +++ b/pages/common/tee.md @@ -0,0 +1,11 @@ +#TEE + +> read from standard input and write to standard output and files + +- Copy standard input to each FILE, and also to standard output. + +`echo "example" | tee {{FILE}}` + +- append to the given FILEs, do not overwrite + +`echo "example" | tee -a {{FILE}}`