aboutsummaryrefslogtreecommitdiff
path: root/wrappers/tac
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/tac')
-rwxr-xr-xwrappers/tac7
1 files changed, 7 insertions, 0 deletions
diff --git a/wrappers/tac b/wrappers/tac
new file mode 100755
index 00000000..6253b70f
--- /dev/null
+++ b/wrappers/tac
@@ -0,0 +1,7 @@
+#!/bin/sh
+# HELP usage: tac [FILE...]\n\nPrint input lines in reverse order
+
+for i in "$@"
+do
+ sed -e '1!G;h;$!d' "$i"
+done