How to optimize all JPG/JPEG files in a directory using jpegoptim
This is very useful in optimizing photo archives etc without changing the directory structure:
find . -name "*.jpg" -exec jpegoptim {} \;
find . -name "*.jpeg" -exec jpegoptim {} \;
find . -name "*.JPG" -exec jpegoptim {} \;
find . -name "*.JPEG" -exec jpegoptim {} \;