Re: [SLUG] text processing

From: Eben King (eben01@verizon.net)
Date: Sun Sep 21 2008 - 15:25:07 EDT


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.

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      royalty.mine.nu:81
Scientist A: A matterbaby is a very unstable particle.
Scientist B: What's a matterbaby?
Scientist A: I'm doing fine honey, how you doing? -- mrshowrules on Fark
-----------------------------------------------------------------------
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 - 16:59:05 EDT