[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Email munging.....
- Subject: [ale] Email munging.....
- From: fletch at phydeaux.org (Fletch)
- Date: 25 Jul 2002 10:35:09 -0400
>>>>> "Chris" == Chris Farris <chris at room17 dot com> writes:
Chris> Anyone out where know of a program that when run on a file
Chris> will replace all <login>@<domain>.<tld> with <login> at
Chris> <domain> dot <tld>? I could hack something together pretty
Chris> quick that would do it, but I don't have time to QA it.
Not thoroughly tested, but . . .
perl -i.bak -pe \
's{(\S+)@((?:[^.]+.?)+)}{$1." at ".join(" dot ",split(/\./,$2))}e' \
file1 file2 file3 ...
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
770 294-0820 (m) | U
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.