Created
May 10, 2012 09:21
unzip files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for item in `ls -d */*.zip` | |
do | |
sub=`echo $item | cut -d / -f 1` | |
unzip $sub/*.zip -d $sub | |
unrar e $sub/*.rar $sub | |
rm -f $sub/*.zip $sub/*.rar | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment