Monday, October 28, 2013

Human friendly printing numbers in command line

When I am on Unix system running things of from command line (either SQL or shell of any sort) with long number, I find these numbers hard to read.  For example a printout of netstat packets shows
236477161 packets
Which is really 236.4  million packets, a human friendly representation will be more like 
236,477,161 packets