DJanGo wrote: > that was quite near - 25 lines... > > > Code: -------------------- > > #!/bin/bash > > SAVEIFS=$IFS > IFS=$(echo -en "\n\b") > > if [ -f /tmp/album.txt ] > then > rm /tmp/album.txt > fi > > for file in $(find ./ -iname *.mp3) > do > album_folder=$(dirname "$file"|rev|cut -d '/' -f 1|rev) > album_tag=$(eyeD3 "$file"|grep 'album'|grep -v 'album '|cut -d ' ' -f2-) > if [ ! "$album_folder" = "$album_tag" ] > then > echo $file is in $album_folder but tag is $album_tag>>/tmp/album.txt > fi > done > IFS=$SAVEIFS > > if [ -f /tmp/album.txt ] > then > cat /tmp/album.txt > fi > -------------------- > >
So the job completed but for some reason it dumped pretty much every track to album.txt (all, 90,000+ of them). Here's an example of one line of the output: Code: -------------------- ./Chris Cornell/Euphoria Morning/01.Can't Change Me.mp3 is in Euphoria Morning but tag is Euphoria Morning [1myear[0m: 1999 -------------------- Could it be a problem with trailing spaces in the tag name? ------------------------------------------------------------------------ itm's Profile: http://forums.slimdevices.com/member.php?userid=17437 View this thread: http://forums.slimdevices.com/showthread.php?t=108251 _______________________________________________ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter