2024-06-17

MacOS - Terminal recursive unzipping

 # Good one!!

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


# Alternative

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