procmail
[Top] [All Lists]

Re: Adding dashes to phone number in subject

2003-06-27 22:12:46
Thanks - this worked also, but put in the Parentheses instead of dashes. Now
I'm off to review the sed web pages, to see if I can figure out why it works
(just as important *to me* as the fact that it DOES work.) (well, almost...)
;-)

Thanks, guys!

Griffin

From: "Gerald V. Livingston II" <debuser(_at_)sysmatrix(_dot_)net>
Reply-To: debuser(_at_)sysmatrix(_dot_)net
Date: Fri, 27 Jun 2003 10:57:43 -0500 (Central Daylight Time)
To: "procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE" 
<procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Subject: Re: Adding dashes to phone number in subject

On Fri, 27 Jun 2003 09:39:11 -0600 LuKreme <kremels(_at_)kreme(_dot_)com>, 
List User
Kreme:  wrote:

On Thursday, Jun 26, 2003, at 19:04 Canada/Mountain, G.M. Wayne wrote:
SO...  What is my problem? Well, I would like to add dashes in the
phone
number in the subject field to make it more readable, and I cannot
figure
out how to do it with either Procmail or formail or sed.

something like:

  sed s/(...)(...)(....)/\(\1\) \2-\3/

should transform

1234567890 to (123) 456-7890

More like:

sed 's!\(...\)\(...\)!(\1)\2-!'

G

-- 
Gerald V. Livingston II

Configure your Email to send TEXT ONLY -- See the following page:
http://expita.com/nomime.html

'74 Kombi (to be renamed - LifeSaver doesn't 'feel' right)
'69 Type 1 - AirBall the Rolling Basket Case
http://www.phorce1.com
http://www.buskatiers.org





_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>