view wrappers/tac @ 496:f0247cfc37f2

Don't mix the the probed symbols with the command symbols.
author Rob Landley <rob@landley.net>
date Thu, 23 Feb 2012 21:03:18 -0600
parents 7da386057101
children
line wrap: on
line source

#!/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