Skip to content

Instantly share code, notes, and snippets.

@ohaal
Created June 29, 2012 20:34
Show Gist options
  • Save ohaal/3020479 to your computer and use it in GitHub Desktop.
Save ohaal/3020479 to your computer and use it in GitHub Desktop.
Sort and rename JPG and AVI recursively with exiftool (year/month/fulldate), then remove duplicates (no prompt to delete)
#!/bin/sh
exiftool -ext AVI -ext JPG -r -d %Y/%m/%Y_%m_%d-%H_%M_%S-%%.2c.%%e "-FileName<DateTimeOriginal" .
# use with caution
#fdupes -rdN .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment