1 #tar xz targzs to destination
5 [ ! -d "$DIR" ] && echo "No such source directory" && exit 1
6 [ ! -d "$DIR2" ] && echo "No such destination directory" && exit 1
8 DIR2
=`cd "$DIR2" && pwd -P`
9 [ "$?" != 0 ] && echo "Cannot change to destination directory" && exit 1
12 [ "$?" != 0 ] && echo "Cannot change to source directory" && exit 1
14 ls *.
tar.gz
2> /dev
/null |
xargs -r -i tar xzf
{} -C "$DIR2"