Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
synology [12.04.2009 18:39 (vor 15 Jahren)] – angelegt cwacha | synology [03.01.2013 16:41 (vor 12 Jahren)] – [Orphans in the database] cwacha | ||
---|---|---|---|
Zeile 94: | Zeile 94: | ||
The only way to fix this is to use '' | The only way to fix this is to use '' | ||
+ | The following script queries all files from the music database and verifies if the file still physically exists. If not a message is printed to STDOUT. If started with '' | ||
+ | < | ||
+ | Usage: ./ | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | # Usage: ./ | ||
+ | |||
+ | [ " | ||
+ | |||
+ | IFS=' | ||
+ | ' | ||
+ | for db in music video photo; do | ||
+ | for testfile in `/ | ||
+ | if [ ! -f " | ||
+ | echo " | ||
+ | [ -n " | ||
+ | fi | ||
+ | done | ||
+ | done | ||
+ | |||
+ | </ |