Created
July 19, 2016 14:45
-
-
Save tivnet/4fee70828e764cc35c40c9fd7c4318ba to your computer and use it in GitHub Desktop.
Split files into folders by EXIF original date
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/bash | |
for f in `find . -name "*.jpg"`; do dd=`exif -t "Date and Time (Original)" --machine-readable $f | cut -f1 -d" " | sed s/:/-/g`; mkdir -p $dd && mv $f $dd/; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment