On 2016-02-19, at 09:26, Bigendian Smalls wrote:
> 
> I’m a big proponent of using the switches to be sure and accurate , but in 
> the case of the output of du I can’t see where it makes a difference. ...
>   
I'll agree with you about output of du.  Testing on an OS X system 
with signed numbers:

639 $ echo "
1
-1
2
-2
3
-3 " | sort

-1
-2
-3 
1
2
3
640 $ 
... not a very good numeric sort.  But:
640 $ echo "
1
-1
2
-2
3
-3 " | sort -nk1,1
-3 
-2
-1

1
2
3
641 $ 

So, "to be sure and accurate", or perhaps just by habit, I use
"-nk" for numeric sorting.  Don't know about floating point or
scientific or engineering notation.  Or about DFSORT.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to