./a
./b
./c
というディレクトリをそれぞれ別々に圧縮して、
./a.zip
./b.zip
./c.zip
を作りたいときは、以下のコマンドを使えばいい。
$ find . \! -name '*.zip' \! -name '.' -type d -exec zip -r {}.zip {} \;
Go to list of users who liked
More than 5 years have passed since last update.
./a
./b
./c
というディレクトリをそれぞれ別々に圧縮して、
./a.zip
./b.zip
./c.zip
を作りたいときは、以下のコマンドを使えばいい。
$ find . \! -name '*.zip' \! -name '.' -type d -exec zip -r {}.zip {} \;
Register as a new user and use Qiita more conveniently
Go to list of users who liked