Ubuntu – Unzip all zip files in a target folder

12.04curlunzipzip

I have a curl cronjob which periodically downloads a bunch of zip files into a target folder. Like this:

curl www.zipdownloadfile.com/file.zip > file.zip

Now I need to have Ubuntu unzip all of the zip files in that target folder.

What's the proper command which will unzip all of the files in a target destination/folder?

Thanks

Best Answer

thats your command man this will unzip all zip file in a destination file

find /path-to-folder -name '*.zip' -exec unzip -d destination_folder {} +

Just try it .