Skip to content

Instantly share code, notes, and snippets.

@ghickman
Last active Aug 29, 2015
Embed
What would you like to do?
#!/usr/local/bin/bash
# use bash 4 from homebrew
set -e
shopt -s globstar
FORMAT="%Y-%m-%d_%H-%M-%S"
# Video files
exiftool -v -r -ext MOV -ext MP4 -ext AVI -ext 3GP -FileName\<CreateDate -d $FORMAT.%%e .
# Images
jhead -autorot -ft -dt -n$FORMAT **/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment