Created
June 29, 2012 20:34
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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