Everybody loves those nasty regular expressions. Headaches ftw! On Wed, Oct 21, 2009 at 5:04 PM, Luke Cycon <lcycon.lcec@xxxxxxxxx> wrote: > Just thought I would share this. > > Its a crazy command using regular expressions that I just wrote up to > strip emails down to a list of email addresses the email was sent to. > > cat Mailing_List | grep '^To:' | sed 's/, /\n/g' | sed 's/.*<\(.*\)>/\1/' > -- > Luke Cycon <lcycon.lcec@xxxxxxxxx> > > >