view wrappers/tac @ 557:feb909b2e6aa

Implement comm.
author Ilya Kuzmich <ilya.kuzmich@gmail.com>
date Thu, 22 Mar 2012 09:01:34 -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