将一堆zip解压缩到自己的目录中 [英] Unzip a bunch of zips into their own directories
本文介绍了将一堆zip解压缩到自己的目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一堆zip文件,我想在Linux中解压缩到它们自己的目录中.例如:
I have a bunch of zip files I want to unzip in Linux into their own directory. For example:
a1.zip a2.zip b1.zip b2.zip
a1.zip a2.zip b1.zip b2.zip
将解压缩为:
a1 a2 11 b2
a1 a2 b1 b2
分别.有没有简单的方法可以做到这一点?
respectively. Is there any easy way to do this?
推荐答案
for file in *.zip
do
unzip -d "${file%.zip}" $file
done
这篇关于将一堆zip解压缩到自己的目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文