view wrappers/tac @ 491:176667e320f0

Add in the -n support, and the 64-bit defines. Force ls to act as ls -1 if used in a pipe.
author Andre Renaud <andre@bluewatersys.com>
date Tue, 21 Feb 2012 20:48:52 -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