procmail
[Top] [All Lists]

Re: Adding dashes to phone number in subject

2003-06-27 08:59:29
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