comparison wrappers/tac @ 411:7da386057101

Add three commands that can be done as simple shell scripts (one sed is in, anyway), and don't need to be implemented in C.
author Rob Landley <rob@landley.net>
date Sun, 22 Jan 2012 20:33:15 -0600
parents
children
comparison
equal deleted inserted replaced
410:3d87f15f4c60 411:7da386057101
1 #!/bin/sh
2 # HELP usage: tac [FILE...]\n\nPrint input lines in reverse order
3
4 for i in "$@"
5 do
6 sed -e '1!G;h;$!d' "$i"
7 done