#!/bin/bash
#
# bmp2jpg.sh							2002/2003
# 
# (GPL) Marno van der Molen - marno.vandermolen@gmail.com
#
# Convert's all bmp's in the current directory to the jpg format
#
# Note that this only works for *.bmp and not for *.BMP! (can be changed by
# changing .bmp to .BMP below)
#
# EDIT: the second 'for' line should work with .BMP and .bmp files (and also
# .bMp and .bMP etc etc) but has not been thorougly tested. Comment the second
# for and uncomment the first for if you run into any trouble.

#for image in *.bmp; do
for image in `ls -1 | grep -i "\.bmp"`; do
	target=`echo $image | sed s/.bmp/.jpg/`
	convert $image $target
done
