Sunday, December 1, 2019

linux - How to unzip multiple ziped files and rename automatically if needed

I have a bunch of Ziped files in a folder, and i would like to unzip all with:


unzip ZIP/*.zip

But automatically rename folders or files with the same name, example:


In ZIP_folder_1.zip and ZIP_folder_2.zip i have one folder called my_name, if i unzip all with the command above, the command line will ask if i want rename it, so, if i have 3k folders with the same name, i will go crazy. Is it possible to do automatically?


Thanks.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...