# $Id: reversefile.mawk,v 1.1 2001/04/26 17:02:01 doug Exp $ # http://www.bagley.org/~doug/shootout/ BEGIN { delete ARGV } { x[NR] = $0 } END { for (i = NR; i >= 1; i--) print x[i] }