Skip to content

Instantly share code, notes, and snippets.

@benjic
Created July 12, 2013 02:41
Show Gist options
  • Save benjic/5981027 to your computer and use it in GitHub Desktop.
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.
#/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