diff options
Diffstat (limited to 'applets_sh/tac')
-rwxr-xr-x | applets_sh/tac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/applets_sh/tac b/applets_sh/tac new file mode 100755 index 000000000..c5a8e39c1 --- /dev/null +++ b/applets_sh/tac | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | # TODO: use getopt to avoid parsing options as filenames, | ||
3 | # and to support -- and --help | ||
4 | for i in "$@" | ||
5 | do | ||
6 | sed -e '1!G;h;$!d' "$i" | ||
7 | done | ||