{"id":53,"date":"2008-05-23T13:28:04","date_gmt":"2008-05-23T13:28:04","guid":{"rendered":"http:\/\/installingcats.com\/?p=93"},"modified":"2008-05-23T13:28:04","modified_gmt":"2008-05-23T13:28:04","slug":"caution-filename-not-matched-unzipping-multiple-files","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2008\/05\/23\/caution-filename-not-matched-unzipping-multiple-files\/","title":{"rendered":"Caution filename not matched when unzipping multiple files"},"content":{"rendered":"

Fix for “caution: filename not matched” error when trying to unzip multiple files at once in Terminal.<\/p>\n

Solution for unzipping multiple zip files with a single command.<\/p>\n

Open up a Terminal window on OS X<\/a>, go to the directory containing the zip files and enter this command:<\/p>\n

unzip *.zip<\/p>\n

The backslash escapes (prevents) the wildcard character (the “*”) from being expanded by bash shell interpreter. In English: the files in the directory are the filenames “unzip” is trying to extract from the first file it finds when using “*”.<\/p>\n

Example:<\/p>\n

\/myzips directory contains zip files: first.zip second.zip third.zip<\/p>\n

Trying to run: “unzip *.zip” will cause the unzip program to take “first.zip” as the archive to play with, and will look for files “second.zip” and “third.zip” within<\/em><\/strong> “first.zip” to expand\/extract. Obviously not what you want to do.<\/p>\n

Not escaping the * character will result in errors like: “caution: filename not matched”.<\/p>\n","protected":false},"excerpt":{"rendered":"

Fix for “caution: filename not matched” error when trying to unzip multiple files at once in Terminal. Solution for unzipping multiple zip files with a single command. Open up a Terminal window on OS X, go to the directory containing the zip files and enter this command: unzip *.zip The backslash escapes (prevents) the wildcard […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,2],"tags":[119,116,120],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/53"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}