Bild-O-Mat.sh

#!/bin/bash

# rename images
for i in /home/$USER/300dpi/*.jpe; do
mv "$i" "${i//.jpe/.jpg}"
done
for i in /home/$USER/700dpi/*.jpe; do
mv "$i" "${i//.jpe/.jpg}"
done

# copy images
mv /home/$USER/300dpi/*.jpg /media/bilder/300dpi/
mv /home/$USER/700dpi/*.jpg /media/bilder/700dpi/

# create web images
firefox http://192.168.1.2/machWebDeluxe.php?type=new