LoginSignup
18
19

More than 5 years have passed since last update.

全ディレクトリを別々の zip に圧縮する

Posted at

./a
./b
./c
というディレクトリをそれぞれ別々に圧縮して、
./a.zip
./b.zip
./c.zip
を作りたいときは、以下のコマンドを使えばいい。

$ find . \! -name '*.zip' \! -name '.' -type d -exec zip -r {}.zip {} \;
18
19
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
19