#!/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
