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

 

相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2021-12-31
  • 2021-09-17
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案