Mercurial > hg > toybox
view wrappers/tac @ 462:3947b397c328
Teach ln about multiple arguments.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 13 Feb 2012 23:43:33 -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