regex help

Randy Melder randymelder at gmail.com
Mon Jun 5 16:14:48 MST 2006


Hey Folks,

I have one big text file containing failed e-mail addresses.

Every line in the file is like:
<username1 at yahoo.com>:
Can't open mailbox for username1 at yahoo.com. Temporary error
//I'm not going to try again; this message has been in the queue too long.

I'd like to extract these out. I'd prefer a shell script that would produce
a list of emails on new lines to STDOUT.

E.g.
Running:
./extract.sh > newfile.txt

Would produce output like:
address at domain1.com
address at domain2.com
etc. In a file called newfile.txt

Anybody have a similar script already made in bash or perl?

thanks,

; ) .randy

-- 



http://spindomains.us/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.plug.phoenix.az.us/pipermail/plug-discuss/attachments/20060605/8b6ad01b/attachment.htm


More information about the PLUG-discuss mailing list