#!/bin/sh PROGDIR=$(dirname $(readlink -f $0)) find "$1" -type f| while read fname; do EXT="${fname/*./}" case "$EXT" in mp3) $PROGDIR/extractors/ext-mpg123 "$fname" ;; cue) $PROGDIR/extractors/ext-cue "$fname" ;; *) true #$PROGDIR/extractors/ext-taglib "$fname" esac done