[SATLUG] Re: how to unzip many zip files

infinitemike at softhome.net infinitemike at softhome.net
Wed Sep 11 23:30:02 CDT 2002


> so there had to be a way to make each subdirectory, then unzip in that.
 

For this situtation, I don't know if there are any shortcuts you can take.  
Here's a solution for bash. 

for file in *.zip; do dir=`basename $file .zip`; mkdir $dir; mv $file $dir; 
cd $dir; unzip $file; cd ..; done 

Mike 



More information about the Satlug mailing list