1file=$1
2shift
3
4case $file in
5*.tar.gz|*.tgz) tool=gzip ;;
6*.tar.bz2) tool=bzip2 ;;
7*.tar.xz) tool=xz ;;
8*) exit 0
9esac
10
11"$tool" -d -c "$file" | "$PAX" -r "$@"
1file=$1
2shift
3
4case $file in
5*.tar.gz|*.tgz) tool=gzip ;;
6*.tar.bz2) tool=bzip2 ;;
7*.tar.xz) tool=xz ;;
8*) exit 0
9esac
10
11"$tool" -d -c "$file" | "$PAX" -r "$@"