view wrappers/tac @ 481:e1b9a8579ddb

mkswap helpstring and argument string
author Elie De Brauwer <eliedebrauwer@gmail.com>
date Sat, 18 Feb 2012 14:13:55 +0100
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