[digiKam-users] removing orphaned xmp files under Linux

woenx marcpalaus at hotmail.com
Thu Mar 8 16:32:57 GMT 2018


This is exactly the script I pasted above does. I recursively scans for .xmp
files and checks if there's a matching cr2. If there isn't, the xmp is
deleted.

I think the "shopt" commands requires a bash console. Did you put the
"#!/bin/bash" at the beginning of the script? What happens if you just run
the "shopt -s nullglob extglob" in a console?



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html



More information about the Digikam-users mailing list