debian-cd-clone/tools/catz

15 lines
156 B
Bash
Executable File

#!/bin/sh
set -e
for file in $@; do
if [ -f $file ]; then
case $file in
*.gz)
zcat -f $file;;
*.xz)
xzcat -f $file;;
esac
fi
done