#! /bin/bash # Last edited on 2007-06-24 09:39:07 by stolfi # Usage: "extract-sony-pic-date < {IMG}.jpg > {DATE}.txt" # Extracts the date and time from a JPEG image taken with SONY # digital camera. Developed for the Cybershot DSC-W50 model # but may work for other cameras too. strings \ | egrep -e '^(19[89]|20[012])[0-9][-:](0[1-9]|1[012])[-:]([012][0-9]|3[012])[ ]+([01][0-9]|2[0-5])[:][0-5][0-9][:]([0-5][0-9]|60)$' \ | sort | uniq