Skip to content

Instantly share code, notes, and snippets.

@xpol
Last active May 13, 2016 06:27
Show Gist options
  • Save xpol/f152c7fabab050bc53ec to your computer and use it in GitHub Desktop.
Save xpol/f152c7fabab050bc53ec to your computer and use it in GitHub Desktop.
Rename photos by exif date
for fil in *.jpg; do datepath="$(identify -verbose $fil | grep DateTimeOri | awk '{print $2"-"$3 }' | sed s%:%%g)"; mv -v $fil $datepath.jpg; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment