Script to batch decompress .rars?
I have a ton of .rar files that I wish to decompress, but doing them one by one takes far too long. unrar "*.rar* works fine, but the problem is that although some of the archives contain only one file, many contain several and I would like these to be expanded to their own directory.
I'm thinking that a shell script using the output of unrar v to work out how many files are in the archive and then proceeding accordingly would work well, but I'm not entirely sure how to achieve that. I'm a bit of a newbie at this scripting thang so any advice would be appreciated.
"Only two things are infinite: the universe and human stupidity, and I'm not sure about the universe."
Albert Einstein
Bookmarks