X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=rename-photos;h=ea84f8088a513877c0561a3f80c53924979e0a86;hp=20ff4316ec4a1922dda34090c4b8cc138a228d20;hb=e1758a22475799ed745a24b89e791e5138e6f649;hpb=1ce0990d5ca83a79c1ad1f79c5f30b417b945179 diff --git a/rename-photos b/rename-photos index 20ff431..ea84f80 100755 --- a/rename-photos +++ b/rename-photos @@ -1,7 +1,7 @@ #!/bin/sh set -e -num=1 +num=${1:-1} if [ -n "$DEBUG" ]; then PREFIX=echo @@ -11,6 +11,7 @@ for f in *.JPG *.jpg; do [ -f "$f" ] || continue title=`exiv2 pr -Pv -gXmp.photoshop.Headline "$f"` || title='' newname=`printf "%03i" $num` + #newname=`exiv2 pr -Pv -gExif.Image.DateTime "$f"` if [ -n "$title" ]; then newname="$newname - $title" fi