view wrappers/tac @ 433:9e7aaecf0683

Fix sort -uc (pointer vs pointer to pointer confusion, covered by typecast).
author Rob Landley <rob@landley.net>
date Tue, 07 Feb 2012 00:31:37 -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