我正在寻找一条命令行来压缩zip存档中的存储库。但是一个存储库=一个zip存档
例如:
find . -maxdepth 1 -type d
.
./von_Thunen
./bestiole
./iznogoud
./irius
./epiSim
./resilience
./micMac
./christaller
./sisbio
./proiePredateur
我想要
ls
.
./von_Thunen.zip
./bestiole.zip
./iznogoud.zip
./irius.zip
./epiSim.zip
./resilience.zip
./micMac.zip
./christaller.zip
./sisbio.zip
./proiePredateur.zip
感谢' S
答案 0 :(得分:1)
find * -maxdepth 1 -type d -exec zip -r {}.zip {} \;