Skip to content

Instantly share code, notes, and snippets.

@sgsfak
Created January 7, 2015 20:28
Show Gist options
  • Save sgsfak/926f3397b2b70fc26d29 to your computer and use it in GitHub Desktop.
Save sgsfak/926f3397b2b70fc26d29 to your computer and use it in GitHub Desktop.
Given a set of JPEG images in a single directory, it prints the Exif based date time information
exiv2 -Pv -g Exif.Image.DateTime *.JPG | awk '{gsub(/:/,"/", $2); print $1,$2}'
@sgsfak
Copy link
Author

sgsfak commented Jan 7, 2015

To move the images to the corresponding directory pipe to xargs as follows:

... | xargs -L 1 mv 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment