The following Linux shell script will identify all progressive JPEGs, in the directory tree under the directory it resides in, and batch convert them to baseline.
It requires ImageMagick to be installed (on Fedora install it like this: yum install ImageMagick)
for img in `find . -name "*" | egrep *\.jpe?g$`
do
idout=`identify -verbose $img | grep -i interlace | grep -i none$`
if [[ -z $idout ]]
then
echo "-------------------------"
echo "$img is progressive"
echo "....making copy of original with .prog extension"
/bin/cp -f $img $img.prog
echo "....converting to baseline"
convert $img -interlace none $img
echo "....done!"
#else
#echo "$img is non-progressive"
fi
done