Skip to content

Instantly share code, notes, and snippets.

@fasiha
Created January 25, 2020 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasiha/d60931317489688d30c692218fedbab1 to your computer and use it in GitHub Desktop.
Save fasiha/d60931317489688d30c692218fedbab1 to your computer and use it in GitHub Desktop.
# while read f; do
for f in $@; do
d=`exiftool -CreateDate "$f" | tail -n1 | cut -d: -f2- | sed -e 's/^ *//' -e 's/ /_/' -e 's/:/-/g'`;
b=$(basename "$f");
final="$d-$b";
echo $final;
/Users/fasih/Downloads/Dropbox-Uploader/dropbox_uploader.sh -q upload "$f" "/Camera Uploads/$final"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment