Created
July 12, 2013 02:41
-
-
Save benjic/5981027 to your computer and use it in GitHub Desktop.
A simple shell script to batch process ISOs. I use it with cron to schedule every night.
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
#/bin/bash | |
cd /home/benji/Videos; | |
for f in *.iso; | |
do | |
HandBrakeCLI -i $f -o `basename $f .iso`.mp4 --preset "Android"; | |
if [ $? = 0 ]; then | |
rm -f $f; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment