aboutsummaryrefslogtreecommitdiff
path: root/wrappers/tac
blob: 6253b70f528838a49c6206898344e60e7a54fb85 (plain)
1
2
3
4
5
6
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