Created
May 14, 2014 18:43
-
-
Save richardtape/c49f0711649026795f27 to your computer and use it in GitHub Desktop.
Batch unrar from the command line in Mac OS X
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
# You'll need to install unrar. See: http://gotofritz.net/blog/tutorials/batch-unrar-command-line-os-x/ | |
# Blog post: http://richardtape.com/?p=291 | |
unrarall(){ | |
# Get our present working directory | |
iamhere=`pwd` | |
# find all rars recursively above where we are | |
find "$iamhere" -name "*.rar" -exec unrar -y -ad x {} \; | |
# display a notification in notification centre when we're done | |
osascript -e 'display notification "Hooray! UnRar procedure finished successfully. Champion." with title "Unrar finished"' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment