dotfiles/.bin/OLD/mcat
2024-02-14 07:55:58 +01:00

13 lines
204 B
Bash
Executable File

#!/bin/sh
for foo in in $@
do
case $foo in
*.gz) zcat $foo; ;;
*.tgz) zcat $foo; ;;
*.bz2) bzcat $foo; ;;
*.tbz2) bzcat $foo; ;;
*) cat $foo; ;;
esac
done