sh bash解压缩为7z

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh bash解压缩为7z相关的知识,希望对你有一定的参考价值。

#!/bin/bash
​
for file in *\.7z*; do
    # get filename without extension
    fname=$(echo $file | cut -d. -f1)
    
    # decompress in the filename generated above
    7za x $file -o./$fname
​
    # delete the compressed directory after decompression
    rm -rf $file
done

以上是关于sh bash解压缩为7z的主要内容,如果未能解决你的问题,请参考以下文章