From b5c0ee60f8ab85c795d4b96b3b162f873e8369cf Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sun, 10 Jul 2022 11:05:30 +0200 Subject: [PATCH] [exiv2-find-uncommented] Inital on find untaged script --- Makefile | 1 + exiv2-find-uncommented | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 exiv2-find-uncommented diff --git a/Makefile b/Makefile index d09fb69..85e10db 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ SCRIPTS = \ event-participant \ exiv2-common-edits \ exiv2-export \ + exiv2-find-uncommented \ folkets \ ip-check \ json2yaml \ diff --git a/exiv2-find-uncommented b/exiv2-find-uncommented new file mode 100755 index 0000000..717bd58 --- /dev/null +++ b/exiv2-find-uncommented @@ -0,0 +1,17 @@ +#!/bin/bash +# +# Script that finds image files which are not commented with common edits +# +# SYNOPSIS +# +# exiv2-find-uncommented PATHS + +PAT=".*\.\(jpg\|JPG\)" +KEY="Exif.Image.Copyright" + +all=$XDG_RUNTIME_DIR/${0##*/}-$$-all.csv + +find ${@} -type f -regex "$PAT" | sort > $all +cat $all | xargs exiv2 -g "$KEY" | cut -d\ -f1 |\ + comm -3 $all - |\ + cat -- 2.39.2