Command line snippet of the week: 53
31st of December, 2009
Last one of this year!
Need to mass extract several RAR archives from different folders? Create a file called “massunrar” in /usr/bin and paste the following content:
find . -type f -name *.r01 -exec unrar e {} \; find . -type f -name *.part01.rar -exec unrar e {} \; echo "Found files:" find . -type f -name *.r01 find . -type f -name *.part01.rar
Be sure to chmod “massunrar” to make it executable:
chmod +x /usr/bin/massunrar
Run “massunrar” in the parent folder to let it search for rar files in all subdirectories and extract them.
More to follow next year!

