Sorting a mail log by email address

14 views
Skip to first unread message

Darren Lau

unread,
Jun 12, 2013, 11:26:12 PM6/12/13
to bbe...@googlegroups.com
Hi,

I need some help to sort log files by email address. I have tried some of the other posts to use pattern matching but am unable to successfully sort.

The email format to match looks like this, and appears after the date, time and other mail log information :


where the name portion can also have the following characters - . _

Any help would be much appreciated. Thank you in advance.

Charlie Garrison

unread,
Jun 13, 2013, 2:02:37 AM6/13/13
to bbe...@googlegroups.com
Good afternoon,

On 12/06/13 at 8:26 PM -0700, Darren Lau <dck...@gmail.com> wrote:

>to=<na...@email.com>
>
>where the name portion can also have the following characters - . _

But not the <> characters. I would try something like:

to=<[^>]+>


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

Reply all
Reply to author
Forward
0 new messages