tac 145 B

1234567
  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