regex help

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Randy Melder
Date:  
To: PLUG-discuss
Subject: regex help
Hey Folks,

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

Every line in the file is like:
<>:
Can't open mailbox for . 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:


etc. In a file called newfile.txt

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

thanks,

; ) .randy

--



http://spindomains.us/
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss