Skip to content

Instantly share code, notes, and snippets.

@antoniomaria
Created August 20, 2016 16:31
Show Gist options
  • Save antoniomaria/5a14709448c7e386de3199e5ab6a8164 to your computer and use it in GitHub Desktop.
Save antoniomaria/5a14709448c7e386de3199e5ab6a8164 to your computer and use it in GitHub Desktop.
Arrage photos by year/month folder using exiftool
# Execute within the folder where pictures are located.
# This command will create a directory hierarchy by year/year-month
sudo apt-get install libimage-exiftool-perl
exiftool -d %Y/%Y-%m/%Y-%m-%d-%H:%M:%S.%%e "-filename<datetimeoriginal" -r .
# See more
# http://ninedegreesbelow.com/photography/exiftool-commands.html#move
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment