LoginSignup
0
0

More than 5 years have passed since last update.

カレントにあるディレクトリを全部個別にzipで圧縮する

Last updated at Posted at 2017-03-22

たまに必要になった時にいつも書き方忘れて困るのでメモ。
末尾のセミコロンのエスケープの仕方がLinuxやMacと違うので注意しましょう。

find ./* -type d -exec zip -qr "{}.zip" "./{}" ";"

zipコマンド自体はscoopを使って入れてます。scoopはとても便利なのでみなさんぜひ使いましょう!

0
0
0

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
0
0