Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Last active November 22, 2018 20:24
Show Gist options
  • Save remcotolsma/01ec042d5265776f1b3ae2c169d5bcb5 to your computer and use it in GitHub Desktop.
Save remcotolsma/01ec042d5265776f1b3ae2c169d5bcb5 to your computer and use it in GitHub Desktop.
ExifTool group images in date folders
# https://sno.phy.queensu.ca/~phil/exiftool/faq.html#Q5
exiftool -d "%Y-%m-%d" -DateTimeOriginal -S -s *.JPG
# -TAG or --TAG Extract or exclude specified tag
# -d FMT (-dateFormat) Set format for date/time values
# -s[NUM] (-short) Short output format
# -S (-veryShort) Very short output format
# https://ninedegreesbelow.com/photography/exiftool-commands.html
# https://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html
exiftool '-Directory<CreateDate' -d ./new/%Y/%Y-%m-%d -r ./old
exiftool '-Directory<FileModifyDate' -d ./new/%Y/%Y-%m-%d -r ./old
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment