linux批量解压和批量压缩

ls *.tar.gz | xargs -n1 tar xzvf //批量解压
ls | awk '{ print "tar zcvf "$0".tar.gz " $0|"/bin/bash" }' //批量打包
ls | awk '{ print "tar zcvf "$0".tar.gz " $0 }'|/bin/bash     //批量打包

你可能感兴趣的:(linux批量解压和批量压缩)