
You can develop applications that integrate with Drive, and create Wrapping up, here is everything to run: cd Downloadsįor archive in *.zip do unar "$archive" -o combined doneĪnd your files will all be unarchived into Downloads/combined.The Google Drive API allows you to create apps that leverage Google Drive cloud To construct a loop like this: for archive in *.zip


You can download it here.įor unar, it cannot take multiple files at once (afaik), so you have Apart from a graphic application, it has a command-line utility called unar. In this case, "The Unarchiver" works better. Since you mentioned that your ZIP files are in the Downloads folder, you should first change your current directory, using the cd command like this: cd DownloadsĪnd you have mentioned non-ASCII file names. zip, and puts their contents into `combined.īoth of the two lines only operates on the current directory (That's why it is called "current working directory" - most commands in the terminal will not try to climb over your entire drive).

I have some ZIP files on my hard drive that I don't want to unzip. However, how do I make this command only unzip and combine my specific ZIP-files in my Downloads-folder and not all ZIP files on my entire drive? The command doesn't seem to specify the Downloads-folder, which makes me worried that it'll unzip and combine all files on my entire drive. In this thread, they mention this command: mkdir combined Here's an existing thread about this that I couldn't reply to since I'm new to stackoverflow: Combine the split zip files downloading from Google Drive How do I merge/combine multiple downloaded ZIP-files from Google Drive on Mac? When downloading a large folder (>50 GB) from Google Drive it'll split the download up in multiple smaller ZIP-files (about 2 GB each) which makes the original master folder a nightmare to put together again with all the files in their correct subfolders.
