日々精進

新しく学んだことを書き留めていきます

特定のフォルダとそのサブフォルダにあるZIPファイルをまとめて解凍する方法

以下のコマンドでできる。

find . -name '*.zip' -exec sh -c 'unzip -d `dirname {}` {}' ';'

linuxのコマンドもっと覚えたいなぁ。
参考:shell - Find all zips, and unzip in place - Unix - Stack Overflow