view wrappers/tac @ 412:2b521c791e4e

Patch shouldn't be bothered by DOS newlines.
author Rob Landley <rob@landley.net>
date Sun, 22 Jan 2012 22:28:04 -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