Created
May 2, 2017 09:46
-
-
Save tkizm1/750abb151a1729b5066717d553085be2 to your computer and use it in GitHub Desktop.
dropbox to google photo exif Date Taken
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 | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for i in $(ls *.png *.jpg); | |
do | |
echo $i; | |
#a=$(exiftool $i -createdate -T); | |
a=$(echo ${i%.*}|sed "s/[-|\.]/:/g") | |
echo $a; | |
exiftool -Date\ Taken=$a $i; | |
done; | |
IFS=$SAVEIFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment