Rather than an 'early' adopter, I prefer to think of myself as an 'absent-minded' adopter. That said, I've just switched to WinAmp3 and along the way solved a small problem with a short perl script. WinAmp (3 and before...) keeps its bookmarks in a text file called 'Winamp.bm'. Something like:
\\HSM1000\MP3\Clancy Brothers.m3u Clancy Brothers \\HSM1000\MP3\David Massengill.m3u David Massengill \\HSM1000\MP3\Eileen McGann.m3u Eileen McGann . . . http://211.58.56.250:8700 [R]Blues On Air http://205.188.234.38:8040 [R]CelticGrove http://64.246.34.89:8060 [R]Dogtown Saloon http://216.237.145.19:8810
Pretty clear, URL followed by name, line by line. Trouble is the list grows like topsy and it becomes hard to find what you are looking for in an unordered list. No problem! This:
#!/usr/bin/perl # SortBM.pl -- sort WinAmp Bookmark file. use strict; use warnings; use diagnostics; my %list; my $url = ''; while (<>) { chomp; if ($url) { $list{$_}=$url; $url = ''; } else { $url = $_; } } if ($url) { $list{$_}=$url; } for (sort keys %list) { print "$list{$_}\n$_\n"; }
does the trick quite nicely. Note that I've annotated my soundcast URLs with 'R' so that they sort but do so seperately.

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

In reply to WinAmp, Bookmarks and Implicate Order by hsmyers

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.