darxide1982 has asked for the wisdom of the Perl Monks concerning the following question:
Which will give me all the lines with the 450: <emailaddress> content, but it gives me all the line. How do I make it give me just the email address?? Many thanks.cat /var/log/mail/info | perl -n -e 'print if /450 </ .. />/'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting Pattern Match from log
by rob_au (Abbot) on Jan 28, 2004 at 11:32 UTC | |
by darxide1982 (Initiate) on Jan 28, 2004 at 11:42 UTC | |
|
Re: Extracting Pattern Match from log
by borisz (Canon) on Jan 28, 2004 at 11:36 UTC | |
by b10m (Vicar) on Jan 28, 2004 at 11:51 UTC | |
|
Re: Extracting Pattern Match from log
by b10m (Vicar) on Jan 28, 2004 at 12:22 UTC | |
by Fletch (Bishop) on Jan 28, 2004 at 14:43 UTC | |
|
Re: Extracting Pattern Match from log
by pelagic (Priest) on Jan 28, 2004 at 11:38 UTC |