On 03/18/11 08:18 AM, Richard L. Hamilton wrote:
I think sort(1) needs a couple of new (as of the last time I looked at an 
OpenSolaris
man page) options:

-C (upper case letter C):  same as -c but explicitly silent.  This should comply
with the latest SUS/XPG, and reconcile the difference between /usr/bin/sort
and /usr/xpg4/bin/sort.

-h (as a comparison type, thus also usages like -k1h): from recent GNU sort,
to compare human-readable numeric values with or without a suffix like K M G 
etc.
(Thus solving the problem of how to sort the output of e.g. du -hs * )

The first of those looks quite easy; the second would require a well-defined
format and comparison for human-readable numeric values to be researched
and specified, before writing the comparison code.

/usr/gnu/bin/sort has both options.
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to