Formatting Numbers to be Comma Separated

From: Sumair Mahmood (Sumair.Mahmood@qlogic.com)
Date: Mon Dec 02 2002 - 16:23:22 EST


Respected Colleagues:

Any suggestions on how I can format numbers so that they come out
comma separated?

INPUT: echo "123456789" | <command>
OUTPUT: 123,456,789

My research into awk/nawk didn't prove very successful. It seems
only to do floating point, e-notation, etc. I suppose I could write a
script to do this, but I'm hoping there is a Solaris utility / option I'm
simply over looking.

Thanks, in advance, for your time!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Sumair Mahmood
 Sr. Unix Systems Engineer
 QLogic Corporation

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:24 EDT