Octal number problem

Mike Meyer mwm at mired.org
Sat Feb 22 13:10:56 EST 2003


Tim Evans <t.evans at paradise.net.nz> writes:

> Gary Duncan <gmduncan at netspace.net.au> writes:
> [snip]
> > 	I have a list of 5-digit decimal numbers, which was constructed
> > with leading zeroes where necessary so that the list is sorted by magnitude
> > using Unix 'sort' (otherwise '00200' would appear before '1').
> Slightly off-topic, but (at least when using gnu sort) 'sort -n' can
> fix that:

The -n flag is a feature of the standard Unix sort.


        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.




More information about the Python-list mailing list