Skip to content

Instantly share code, notes, and snippets.

@danieldbower
Created June 8, 2011 13:00
Show Gist options
  • Save danieldbower/1014372 to your computer and use it in GitHub Desktop.
Save danieldbower/1014372 to your computer and use it in GitHub Desktop.
Rename Canon picture files with ExifTool
###############################################################
# canon-date.sh
# Renames photos taken by Canon Digital Cameras into something
# more sortable and useful.
#
# Depends on exiftool
#
# Download, make executable, and then run ./canon-date.sh in the
# directory of the photos you want to rename. The script will
# create sub-directories by year and month.
###############################################################
exiftool '-FileName<CreateDate' -d %Y-%m/%Y%m%d_%H%M_%S_%f.%%e .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment