#!/bin/sh
cd $(dirname "$0")
find . -type f -iname '*.jpg' | grep -v '\./thumb\.' | while read f; do
  echo "$f"
  jhead -autorot "$f"
done

