[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Code/logic collection question
- Subject: [ale] Code/logic collection question
- From: dcorbin at imperitek.com (David Corbin)
- Date: Mon, 23 Apr 2001 20:16:54 -0400
greg at turnstep.com wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Quick and dirty: you'll probably want to manually pick out
> some addresses, but it works:
>
> perl -ne 'print "$1\n" if /(\w+@\w+\.\w+)/' pinefile | sort -u
Of course, this assumes that there is never more than one mail address
per line....
I haven't test it, but I'd try this variation...
---cut---
#!/usr/bin/perl
while (<>)
{
push @addrs, /(\w+@\w+\.\w+)/;
}
print join("\n", at addrs)
---eof---
then you could pipe THAT through sort -u
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.