I'm an engineer, game developer, programmer, graphic artist... and this is my blog. To know more about me you can visit my main website:binarynonsense.com
August 29, 2015
# unrar all rar files in current dir to same-named subdirectories
# ref: http://bashscripts.org/forum/viewtopic.php?f=8&t=908
# ref : http://www.linuxquestions.org/questions/programming-9/unrar-multiple-files-into-seprated-directory-base-on-their-name-927127/
echo "starting unrar in folders"
# for everything named *.rar
for filename in *.rar
foldername=$(basename "$filename" .rar)
unrar x ../"$filename"
echo "finished unrar in folders"
© Álvaro García — built with Jekyll, theme based on Lagom