Skip to content

Instantly share code, notes, and snippets.

@tkizm1
Created May 2, 2017 09:46
Show Gist options
  • Save tkizm1/750abb151a1729b5066717d553085be2 to your computer and use it in GitHub Desktop.
Save tkizm1/750abb151a1729b5066717d553085be2 to your computer and use it in GitHub Desktop.
dropbox to google photo exif Date Taken
#!/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