scanscript.sh
changeset 6 f0c87fb62b66
parent 5 981be8773be7
child 7 1928f1a1ee5b
equal deleted inserted replaced
5:981be8773be7 6:f0c87fb62b66
     1 #!/bin/sh
     1 #!/bin/sh
     2 PROGDIR=$(dirname $(readlink -f $0))
     2 PROGDIR=$(dirname $(readlink -f $0))
     3 find "$1" -type f| while read fname; do
     3 find "$1" -type f| while read fname; do
     4     $PROGDIR/extractors/ext-taglib "$fname"
     4     EXT="${fname/*./}"
       
     5     if [ "$EXT" == "mp3" ];then
       
     6         $PROGDIR/extractors/ext-mpg123 "$fname"
       
     7     else
       
     8         true#$PROGDIR/extractors/ext-taglib "$fname"
       
     9     fi
     5 done
    10 done