i have a stack of roms for xmame that are in zip format and xmame won't 
recognise them (though i thought it would) i want to unzip each to a 
directory of the same name minus the .zip extension, however the default for 
unzip is to extract into the current directory, i can't get the -d option to 
work with a variable, how do i do this, the following is what i have come up 
with so far:
[root@mycroft xroms]# for file in *;do set base=basename $file .zip; unzip 
$base -d $base;done

i get errors about using the -d option for unzip!

of course, any elegant solutions for this are welcome!

bascule

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to