Last active
April 12, 2017 21:03
-
-
Save nicinabox/a441bc369efb4cc19ab1ded7a8992da1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: rolls.sh PATH | |
for path in $1/**; do | |
dirname=`basename "$path"` | |
for file in $path/**; do | |
exiftool -overwrite_original -headline="roll $dirname" "$file" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will write exif headline with
roll 001
(image parent directory name)