Skip to content

Instantly share code, notes, and snippets.

@osamu2001
Last active December 15, 2015 04:59
Show Gist options
  • Save osamu2001/5205271 to your computer and use it in GitHub Desktop.
Save osamu2001/5205271 to your computer and use it in GitHub Desktop.
#!/bin/sh
for p in IMG RIM CIM
do
exiftool -d '%Y-%m-%d %H.%M.%S.jpg' "-Filename<DateTimeOriginal" ${p}_*.JPG
for e in MOV PNG JPG
do
for f in `ls ${p}_*.${e}`
do
t=`mov2timestr.rb $f $e`
mv "$f" "$t"
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment