Created
October 18, 2020 06:10
-
-
Save hfwang/ff1528a941535cf496f7e5fc6b879d20 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
for X in $(find . -name '*.jpg') ; do | |
echo "${X}" | | |
sed -E 's|^(./(....)/(..)/........(..)(..)(..)(..).*)|\2 \3 \4 \5 \6 \7 \1|'; | |
done | while read -r Y M D h m s f ; do | |
exiftool -overwrite_original -exif:all= -F "-make=Nintendo co., ltd" -alldates="$Y:$M:$D $h:$m:$s" "$f" | |
touch -t "$Y$M$D$h$m" "$f" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment