Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| synology [12.04.2009 18:39 (vor 18 Jahren)] – angelegt cwacha | synology [03.01.2013 16:41 (vor 14 Jahren)] (aktuell) – [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 | ||
| + | |||
| + | </ | ||