summaryrefslogtreecommitdiff
path: root/applets_sh/tac
blob: c5a8e39c11152dceaa2cde867d3ee4eab1c31c4c (plain)
1
2
3
4
5
6
7
#!/bin/sh
# TODO: use getopt to avoid parsing options as filenames,
# and to support -- and --help
for i in "$@"
do
sed -e '1!G;h;$!d' "$i"
done