2018-09-27

MacOS - Command line zip file creation

Several sample commands:

find ~/Documents/unzipTest -type f -name "*.zip" -exec unzip {} -d ~/Documents/unzipTest/ \;

find ~/Documents/unzipTest -type f -name "*.zip" -print0 | xargs -0 -I{} unzip {} -d ~/Documents/unzipTest

find <path_of_your_zips> -type f -name "*.zip" -exec unzip {} -d <out> \;

find <path_of_your_zips> -type f -name "*.zip" -exec unzip {} -d <out> \;

find /Users/ca/Documents/unzipTest/ -type f -name "*.zip" -exec unzip {} -d ~\Documents\unzipTest\ \;

find /Users/ca/Documents/unzipTest -type f -name "*.zip"

No comments:

Post a Comment