#!/bin/sh PROGDIR=$(dirname $(readlink -f $0)) find "$1" -type f| while read fname; do EXT="${fname/*./}" if [ "$EXT" == "mp3" ];then $PROGDIR/extractors/ext-mpg123 "$fname" else true#$PROGDIR/extractors/ext-taglib "$fname" fi done