[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Estrarre tutta una directory con unzip



Non conosco molto bene bash ma vorrei imparare ad usarla al suo meglio
Voglio estrarre tutti i file in una directory in un'altra directory ma non mi riesce:

unzip  amsnplugin/?* -d /usr/share/amsn/plugins
Archive:  amsnplugin/amsnplus-2.6.zip
caution: filename not matched:  amsnplugin/bigsmileys-20060116.zip
caution: filename not matched:  amsnplugin/colorize-1.0.zip
caution: filename not matched:  amsnplugin/desktop_integration-0.9.zip
caution: filename not matched:  amsnplugin/emotes-0.1.zip
caution: filename not matched:  amsnplugin/fakingit-b2.zip
caution: filename not matched:  amsnplugin/gename-1.0.zip
caution: filename not matched:  amsnplugin/glogs-1.0.zip
caution: filename not matched:  amsnplugin/music-1.3.zip
caution: filename not matched:  amsnplugin/pop3-2.2.zip
caution: filename not matched:  amsnplugin/TeXIM-0.7.zip
caution: filename not matched:  amsnplugin/whatis-1.2.zip
caution: filename not matched:  amsnplugin/winskin-0.11.zip

Come posso farcela in un solo comando ?
Ho provato anche      unzip `ls amsnplugin/*` -d /usr/share/amsn/plugins
e for x in `ls amsnplugin/*zip`; do unzip -d x /usr/share/amsn/plugins; done



Reply to: