From: Martin Pitt Date: Sat, 3 Dec 2022 22:16:38 +0000 (+0100) Subject: process-photos: Rename *.JPG to *.jpg X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=ae2ec60ba79eddb9ac8667780593410fd6fd0b96;p=bin.git process-photos: Rename *.JPG to *.jpg --- diff --git a/process-photos b/process-photos index 14ee5b3..219edf3 100755 --- a/process-photos +++ b/process-photos @@ -1,7 +1,11 @@ #!/bin/sh set -eu -for f in *.jpg *.JPG; do +for f in *.JPG; do + mv "$f" "${f%JPG}jpg" +done + +for f in *.jpg; do echo "$f" chmod 644 "$f" info="$(exiv2 -Pnv "$f")"