Remove playlist entries from unmounted usbdrives

Hello,

is ther a way to "Remove playlist entries for non-existent files" using bash
It will be used for usbmount

Thanks

Forums:

Not from within MOC, but it would be easy enough to write a script in almost any scripting language (including BASH) to filter the playlist file and drop any entries for non-existant files.