フォルダ内のZipファイルを繰り返し匿名化

フォルダ内のZipファイルを繰り返し匿名化

zip親フォルダとサブフォルダには複数のファイルがあります。zip filesこれらすべてをダミーのzipファイルに置き換えたいと思います。言い換えれば:

 * the original zip file content being replaced by the dummy zip file  
 * the original zip file name will remain as it is  
 * the origin zip file path will remain as it is  

これを達成する方法を教えてください。

ベストアンサー1

この試み、

find /some/path/ -iname "*.zip" -exec cp -f /path/to/dummy.zip {} \;

/some/pathzipファイルを検索したいフォルダに変更します。

警告:これにより、以下のすべてのzipファイルの元のコンテンツが削除されます/some/path

おすすめ記事