Mercurial > hg > toybox
view wrappers/tac @ 560:979c5ab6f0c2
Replace ?: gcc extension with standard code
author | Kevin Chase <kevincha99@hotmail.com> |
---|---|
date | Sat, 07 Apr 2012 10:15:52 -0700 |
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