Add script to fix mtime from Exif data master
authorJulien Valroff <julien@kirya.net>
Sun, 5 Jun 2022 07:00:41 +0000 (09:00 +0200)
committerJulien Valroff <julien@kirya.net>
Sun, 5 Jun 2022 07:00:41 +0000 (09:00 +0200)
fix-mtime.sh [new file with mode: 0644]

diff --git a/fix-mtime.sh b/fix-mtime.sh
new file mode 100644 (file)
index 0000000..a31f390
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+find . -type f -newermt 2015-07-31 ! -newermt 2015-08-02 -exec bash -c "touch -t \`exiftool -s -s -s -d "%Y%m%d%H%M.%S" -DateTimeOriginal \"{}\" \` \"{}\"" \;