[SunHELP] sort email address.

Will Mc Donald wmcdonald at ntlworld.com
Wed Nov 13 01:53:55 CST 2002


The sort command will do what you want...

[wmcdonald at dev2 wmcdonald]$ cat unsorted
you at bcd.com
me at abc.com
who at cxy.com
[wmcdonald at dev2 wmcdonald]$ sort -k 2 -t '@' unsorted
me at abc.com
you at bcd.com
who at cxy.com


Will.

----- Original Message -----
From: "Sangbutsarakum, Patai" <patais at reach.com>
To: <sunhelp at sunhelp.org>
Sent: Wednesday, November 13, 2002 7:49 AM
Subject: [SunHELP] sort email address.


> I have a list of email addresses.
> I need to sort that list by domain name(afer '@').
> some scripter please suggest.
>
> you at bcd.com
> me at abc.com
> who at cxy.com
>
> output should be
>
> me at abc.com
> you at bcd.com
> who at cxy.com
>
> Thnks.
> Pat.
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list