Skip to content

Instantly share code, notes, and snippets.

@nicinabox
Last active April 12, 2017 21:03
Show Gist options
  • Save nicinabox/a441bc369efb4cc19ab1ded7a8992da1 to your computer and use it in GitHub Desktop.
Save nicinabox/a441bc369efb4cc19ab1ded7a8992da1 to your computer and use it in GitHub Desktop.

Revisions

  1. nicinabox revised this gist Apr 12, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rolls.sh
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@
    # Usage: rolls.sh PATH

    for path in $1/**; do
    dirname="$(basename "${path}")"
    dirname=`basename "$path"`

    for file in $path/**; do
    exiftool -headline="roll $dirname" "$file"
    exiftool -overwrite_original -headline="roll $dirname" "$file"
    done
    done
  2. nicinabox revised this gist Apr 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rolls.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,6 @@ for path in $1/**; do
    dirname="$(basename "${path}")"

    for file in $path/**; do
    exiftool -headline="roll $dirname" $file
    exiftool -headline="roll $dirname" "$file"
    done
    done
  3. nicinabox created this gist Apr 12, 2017.
    11 changes: 11 additions & 0 deletions rolls.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash

    # Usage: rolls.sh PATH

    for path in $1/**; do
    dirname="$(basename "${path}")"

    for file in $path/**; do
    exiftool -headline="roll $dirname" $file
    done
    done