Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- which exiftool || sudo apt install exiftool
- find -iname "*.jpg"|while read i;
- do
- d="$(exiftool -T -DateTimeOriginal "$i"|awk '{print $1}'|cut -d\: -f1,2|tr ":" "/")";
- [[ "$d" ]] && mkdir -p "$d" || d="."
- mv -v "$i" "$d"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement