Skip to content

Instantly share code, notes, and snippets.

@randria
Created January 2, 2019 12:12
Show Gist options
  • Save randria/32461f251c48bd3d29f136019a0a53bd to your computer and use it in GitHub Desktop.
Save randria/32461f251c48bd3d29f136019a0a53bd to your computer and use it in GitHub Desktop.
exiftool options
# rename file to "YYYYMMDDTHHMMSS[-XX].EXT" and move files to $DIRDST/<YEAR>/
DIRDST=; DIRSRC=; exiftool -v "-filename<filemodifydate" "-filename<createdate" "-filename<datetimeoriginal" -ext mp4 -ext mpg -ext bmp -ext avi -ext jpg -ext mov -d "$DIRDST/%Y/%Y%m%dT%H%M%S%%-c.%%ue" -r $DIRSRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment