> 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.

That certainly helps for the immediate scripting problem, thanks!

Would you happen to already know (so I don't spend hours
trying to compare first the man pages and then anything else
I can dig up on the web) whether /usr/gnu/bin/sort is
a complete superset of /usr/bin/sort and /usr/xpg4/bin/sort?
And how the performance or resource consumption compare?

In other words, if GNU sort has all the functionality and more,
then why doesn't it get promoted to the one true version of "sort"?
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to