赞
踩
for i in `find . -name "*.zip" -type f`; do unzip $i -d ./ ; done
for i in `find . -name "*.zip" -type f`; do mkdir ${i//.zip} ; unzip $i -d ./${i//.zip} ; done
!for i in `find . -name "*.zip" -type f`; do unzip -j $i -d ./ ; done
参考链接
[1]:https://www.yisu.com/zixun/671146.html
[2]:https://www.php.cn/linux-486665.html#:~:text=%E5%9C%A8linux%E4%B8%AD%EF%BC%8Cfor%E5%91%BD%E4%BB%A4%E7%94%A8%E4%BA%8E%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%BE%AA%E7%8E%AF%EF%BC%8C%E8%AF%A5%E5%BE%AA%E7%8E%AF%E9%80%9A%E8%BF%87%E4%B8%80%E7%B3%BB%E5%88%97%E5%80%BC%E7%9A%84%E5%BE%AA%E7%8E%AF%E6%9D%A5%E4%BD%BF%E7%94%A8%E7%B3%BB%E5%88%97%E4%B8%AD%E7%9A%84%E4%B8%80%E4%B8%AA%E5%91%BD%E4%BB%A4%E9%9B%86%EF%BC%8C%E8%AF%AD%E6%B3%95%E4%B8%BA%E2%80%9Cfor%20%E5%8F%98%E9%87%8F%E5%90%8D%20in,%E5%80%BC%E5%88%97%E8%A1%A8%20do%20%E5%91%BD%E4%BB%A4%E5%BA%8F%E5%88%97%20done%E2%80%9D%E3%80%82
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。