cat 26th_JULY.m3u | sed /^#/d | tr '\\' '\n' | tr '\r' '\n' | sed '/\(.mp3\)\|\(.MP3\)\|\(.Mp3\)
sed /^#/d Remove the lines starting with #
tr '\\' '\n' The windows path backslash (\) is changed to line feed
tr '\r' '\n' The Carriage return is changed to line feed
sed '/\(.mp3\)\|\(.MP3\)\|\(.Mp3\)
Added tr '\r' '\n' on 26th July 2011.
The line used to end with both \r\n which made ices fail to start the playlist.
\r - Carriage Return - 0D in Hex
\n - Line feed - 0A in Hex
No comments:
Post a Comment