解压多个 .zip、.gz 或 .bz2

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

.zip

for file in *.zip; do unzip "${file}"; done

.gz

gunzip *.gz

.bz2

bunzip2 *.bz2

tar.gz

for file in *.tar.gz; do tar zxf "${file}"; done

tar.bz2

for file in *.tar.bz2; do tar jxf "${file}"; done

转载于:https://my.oschina.net/wdyoschina/blog/1501600

你可能感兴趣的:(解压多个 .zip、.gz 或 .bz2)