Rather then using a bash loop, you can use unrar’s recursive flag. Simply

cd /home/folder/rars

then just

unrar x -r *.rar /home/output/folder

Related Posts