views:

27

answers:

2

Hi, I have got an archive of many fonts but i have troubble extracting them all into one folder. i tried to write a long script for 3 hours now, it somehow breaks on a path issue. i tried piping like find . -name *.zip|unzip -d ~/fonts but it doesnt work. i changed so much in the script i wrote, that it is not really presentable :(.

each fontfile is supposedly (i didnt check all, there are really many) inside a rar archive which together with a readme is in a zip archive which together with another readme is in each its own folder. can this be done in one line?

A: 

Try changing the one line like this find . -name "*.zip" | xargs unzip -d ~/fonts

Raghuram
Archive: ./FONT1-TYPO/t-1.zipcaution: filename not matched: ./FONT2-TYPO/t-2.zip caution: filename not matched: ./FONT2-TYPO/t-2.zip
vecvandoom
if i try "unzip -d ~/fonts ./FONT1-TYPO/t-1.zip", then it works.
vecvandoom
So finally it worked with exec option or not?
Raghuram
A: 

Try this

find . -name "*.zip" -exec unzip -d ~/fonts {} \;
Damien