1

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?

3
  • @DopeGhoti I didn't try anything if you know how can I do it please provide your answer, extract sites/default/files/*.mp3 files form zip file Commented Feb 26, 2016 at 7:14
  • unix.stackexchange.com/questions/14120/… Commented Feb 26, 2016 at 7:40
  • @bodhi.zazen you just search the google and paste it here ? :D , read the question first please, files not file ;) Commented Feb 26, 2016 at 7:55

1 Answer 1

3

I found the solution, you can do it with

unzip yourzipfile.zip 'sites/default/files/*.mp3' -d mymp3 
1
  • 1
    You better put the filename wildcard into quotes, else you'll get problems if an mp3 already exists in the local path. Commented Feb 26, 2016 at 12:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.