tar 多文件解压压缩

tar 多文件解压:因为tar -zxvf一次值能解压一个文件,所以用xargs -n1
1.先查找  ls *gz | xargs -n1 tar -zxvf     
2.要解压的文件在list中  cat list | xargs -n1 tar -zxvf     
tar 多文件压缩:
1.要压缩的文件在list中  tar -T list -zcvf test.tar.gz
2.采用xargs             ls * | xargs tar -zcvf test.tar
原文地址:https://www.cnblogs.com/zendu/p/4980349.html