view wrappers/tac @ 592:be4b2d3796eb

Feeding -1 to xdup() isn't an error.
author Rob Landley <rob@landley.net>
date Sat, 09 Jun 2012 19:49:37 -0500
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