#!/bin/sh # maintained in git at http://mdcc.cx/git/wd/ad1810-stuff/ # a1-zoekmuziekjes - parse djjoostvb.dirs playlist file, report on audio files # This file is in the public domain. # Joost van Baal-Ilić, juni 2018 # joostvb@perun:~/git/ad1810-stuff/scripts% ./a1-zoekmuziekjes < ~/djjoostvb.dirs # joostvb@perun:~/git/ad1810-stuff/scripts% cat ~/djjoostvb.dirs | ./a1-zoekmuziekjes | grep missing > /tmp/missing grep -v '^#' | rev | sed -E 's|([^/]+/[^/]+)/.*|\1|' | rev | while read t do if test $(locate "$t" | wc -l) -eq 1 then found=$(locate "$t" | head -1) echo found $found else echo missing $t fi done