We all download TV shows, there is no use denying it. I recently got pointed in the directory of a rather funny show called The Big Bang Theory. I grabbed the first episode of season 1, saw what I liked, then grabbed the entire season 1 pack.
17 episodes, each in their own folder in .rar files.
What a pain in the ass!
Instead of clicking away at each RAR file individually, I put together a little bash script to do the work for me which I’ve called unrar_all.
#!/bin/bash # # Script to unrar season packs of TV shows # Put it in the directory containing all the directorys # # eg. # Big_Bang_Theory.1x01.Pilot.DVDRip_XviD-FoV/ # Big_Bang_Theory.1x02.The_Big_Bran_Hypothesis.DVDRip_XviD-FoV/ # Big_Bang_Theory.1x03.The_Fuzzy_Boots_Corollary.DVDRip_XviD-FoV/ # unrar_all find . -type d -print | while read i do pushd . cd $i unset partrar partrar=`find . -name *part01.rar` if [ -n "$partrar" ]; then unrar e *part01.rar mv *.avi ../ popd else unrar e *.rar mv *.avi ../ popd fi done
This script requires unrar from RARLabs.