Skip to content

Instantly share code, notes, and snippets.

@tivnet
Created July 19, 2016 14:45
Show Gist options
  • Save tivnet/4fee70828e764cc35c40c9fd7c4318ba to your computer and use it in GitHub Desktop.
Save tivnet/4fee70828e764cc35c40c9fd7c4318ba to your computer and use it in GitHub Desktop.
Split files into folders by EXIF original date
#!/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