Created
February 21, 2012 13:50
-
-
Save arvidkahl/1876665 to your computer and use it in GitHub Desktop.
recursive unrar script (with rm) that keeps directory structure intact
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 f in `find . -type f -name "*.rar"` | |
do | |
echo "Unpacking " $f " into " `dirname $f` | |
unrar x -y $f `dirname $f` | |
rm $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works on an OSX machine with unrar binaries from http://www.rarlab.com/download.htm
To be used from within the directory that contains all the archives that need to be expanded.