I have a big zip archive and I want to extract only .mp3 files that are located in sites/default/files/ to mymp3 directory. How can I achieve it?
1 Answer
I found the solution, you can do it with
unzip yourzipfile.zip 'sites/default/files/*.mp3' -d mymp3 - 1You better put the filename wildcard into quotes, else you'll get problems if an mp3 already exists in the local path.Murphy– Murphy2016-02-26 12:25:22 +00:00Commented Feb 26, 2016 at 12:25
sites/default/files/*.mp3files form zip file