[digiKam-users] removing orphaned xmp files under Linux

Chris Green cl at isbd.net
Wed Mar 7 21:35:30 GMT 2018


Peter Mc Donough <mcd-mail-lists at gmx.net> wrote:
> Hi,
> 
> I noticed that there are some orphaned xmp-files in my photo folders.
> 
> Does anybody know some command line magic for Linux for at least finding 
> them?
> 
Do they have a suffix or at least a recognisble pattern in their name?
If so it's dead easy using the 'find' command:-

    find <name of top level directory> -name '*.xmp'

If you want to remove the files as well:-

    find <name of top level directory> -name '*.xmp' -exec rm {} \;

-- 
Chris Green
ยท




More information about the Digikam-users mailing list