From 2c9b7c9f5c2f9b18a9f4d1c6a02b5d8a6c5561e9 Mon Sep 17 00:00:00 2001 From: Raghu Kalluri Date: Sat, 8 Feb 2020 20:18:47 +0530 Subject: [PATCH] tac: add stdin example (#3844) --- pages/common/tac.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/tac.md b/pages/common/tac.md index cbdd9c2b1d..be9344d9c1 100644 --- a/pages/common/tac.md +++ b/pages/common/tac.md @@ -1,11 +1,15 @@ # tac -> Print and concatenate files in reverse. +> Print and concatenate files in reverse (last line first). - Print the contents of *file1* reversed to the standard output: `tac {{file1}}` +- Print the contents of the standard input reversed to the standard output: + +`{{command}} | tac` + - Concatenate several files reversed into the target file: `tac {{file1}} {{file2}} > {{target_file}}`