Skip to content

Instantly share code, notes, and snippets.

@tjibbevanderlaan
Last active February 8, 2020 21:35
Show Gist options
  • Save tjibbevanderlaan/d6bdf25d63486b82b60d69aaba94b55b to your computer and use it in GitHub Desktop.
Save tjibbevanderlaan/d6bdf25d63486b82b60d69aaba94b55b to your computer and use it in GitHub Desktop.
Split directory of photos by date using exiftool
#/bin/sh
PHOTODIR=$PWD/$1
exiftool -r -o "${PHOTODIR}" "-FileName<CreateDate" -d "${PHOTODIR}/%Y-%m-%d/%Y-%m-%d_%H-%M-%S%%-c.%%le" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment