Re: [SLUG] text processing

From: Dylan William Hardison (dylan@hardison.net)
Date: Sun Sep 21 2008 - 22:55:39 EDT


Spake Eben King on Sunday, September 21, 2008 at 03:25PM -0400:
> On Sun, 21 Sep 2008, Dylan William Hardison wrote:
>
>> Spake Eben King on Wednesday, September 17, 2008 at 01:20PM -0400:
>>> :^\/s@/mp3/\(.\)@/mp3/\1/\1
>>
>> perl -i -pe 's!mp3/([A-Za-z0-9])!mp3/\L$1/!ge' file.m3u
>
> Excellent, thanks. Now I need to learn enough Perl to put this in a good
> script. Shouldn't be much. That's most likely quite a bit faster than
> my script.

That is the entire script. it'll modify file.m3u in place. :)
You may pass it as many m3u files as you please.

-- 
We're here to give you a computer, not a religion.
              -- attributed to Bob Pariseau, at the introduction of the Amiga
-
GPG Fingerprint: 1AD8 69DD F56A E7AB 421C  7D8A C66D 87D9 82CD 4AE4.
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:00:49 EDT