Quantcast
Channel: Unzip to directory of the same name - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2

Unzip to directory of the same name

$
0
0

I am trying to unzip files supplied by Google Takeout and need a command to unzip all zip files in a directory to a directory of the same name as the zip file to avoid conflicts.The zip names cannot be pre-determined so therefore neither can the resulting unzipped directories.

Eg

-zipstore----zipname1.zip----zipname2.zip

should result in

-zipstore----zipname1.zip----zipname1----zipname2.zip----zipname2

Where zipname1 and zipname2 are the directories containing the unzipped files.

A further consideration is how do I detect if the zip has finished downloading before extracting - these are 10Gb files !!


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images