Re: [gentoo-user] OT - Extracting IP addresses with grep

2006-10-12 Thread Willie Wong
On Thu, Oct 12, 2006 at 01:51:05PM -0500, Michael Sullivan wrote: > [EMAIL PROTECTED] ~/.maildir/.SPAM/cur $ cat * | grep -P m/\d+\.\d+\.\d > +\.\d+/ You might want the expression in quotes to prevent bash from intercepting those backslashes. grep -P '\d+\.\d+\.\d+\.\d+' HTH, W -- Willie W

[gentoo-user] OT - Extracting IP addresses with grep

2006-10-12 Thread Michael Sullivan
I have a mail directory with several hundred spammish emails that have been collecting over the past month. I haven't gotten around to processing them yet ([EMAIL PROTECTED] if available, blocked if not) I would like to write a script that would extract the IP addresses from all these emails, but