[wellylug] Getting Email addresses from a file with grep etc

JP jumbophut at yahoo.co.in
Fri Jun 4 18:18:50 NZST 2004


 --- Joseph Booth wrote: 

> Hi all.
> 
> Trying to add about four thousand (valid) email
> addresses to a list 
> from my mail archives. The mail is in a text file,
> and i'm trying to 
> grep out clean addresses for adding to a mail list
> I know it sounds highly spamish, but I assure you
> each of these email 
> address is from personal correspondence over the
> last year...  I would 
> download a email harvesting engine, but that seems
> wrong ;)
> 

All spammers who might be reading this: do not!!! It
will shrink bits of your anatomy if you do!!!

1) If you can arrange to do one address per line, pipe
your grep output to sed, then use sed to extract the
e-mail address.  sed -e 's/\(pattern\)/\1/'.

2) Try here for the appropriate pattern:
<http://www.castaglia.org/proftpd/doc/contrib/regexp.html>

man sed is your friend.

Cheers
Tony



________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/




More information about the wellylug mailing list