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:
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 “*”.
/myzips directory contains zip files: first.zip second.zip third.zip
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 “first.zip” to expand/extract. Obviously not what you want to do.
Not escaping the * character will result in errors like: “caution: filename not matched”.