# Description: # This script makes a file in the m3u format, which is a playlist format for # mp3 files and which is recognised by a number of of 'reproductores de sonidos' # # Notes: # This script is specific to the web-site which is located on the American RedHat # server at /var/www/poseidonia/ and which has the URL http://poseidonia.ella-associates.org/ # base="http://poseidonia.ella-associates.org/bands/"; d=$(pwd | sed "s#/var/www/poseidonia/bands/##"); # echo $d for f in *.mp3 do fn=$(echo $f | sed "s/\.mp3//") echo "#EXTM3U" > $fn.m3u echo "#EXTINF:-1,$base$d/$f" >> $fn.m3u echo "$base$d/$f" >> $fn.m3u done # check that the files were written correctly cat *.m3u