1 2 3 4 5 6 7
#!/sbin/sh ls | while read i; do ls "$i"| while read j; do mid3v2 -p "$i"/"$j"/thumb.jpg "$i"/"$j"/*.{mp3,flac} done done