[ale] Email munging.....
Fletch
fletch at phydeaux.org
Thu Jul 25 10:35:09 EDT 2002
>>>>> "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.
More information about the Ale
mailing list