find must be one of those archaic unix commands. It takes years to master.
find /mnt/sd -type f -iname "*.thm" -o -iname "*.jpg"
This commands finds files in /mnt/sd that have either the .thm or .jpg extension.
Noticed an error? Something that could be better? Please tell me!