Skip to content

Instantly share code, notes, and snippets.

@billypchan
Last active April 26, 2018 13:07
Show Gist options
  • Save billypchan/108ffa0a6b825fab85ec904adea43cb1 to your computer and use it in GitHub Desktop.
Save billypchan/108ffa0a6b825fab85ec904adea43cb1 to your computer and use it in GitHub Desktop.
## for imported photos of iPhone, after this step, screenshots and movie remains
exiftool -d %Y%m%d/%Y-%m-%d-%Hh%Mm%S.%%e "-filename<datetimeoriginal" .
## for screenshots and movies of iPhone
for x in *.*; do
d=$(date -r "$x" +%Y%m%d)
mkdir -p "$d"
mv -- "$x" "$d/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment