On 2016-02-19, at 08:14, Bigendian Smalls wrote:

>> But beware; it may be resource-intensive.
> 
> Alternatively you could du -sk * > file.txt
> then cat file.txt|sort
> 
> Saving the trouble of doing it in memory.  Though I suspect calculating the 
> sizes of the folders is much much more intensive than sorting a relatively 
> brief set of text.
> 
>> Does UNIX sort employ DFSORT when needed/available?
> 
> I don’t know for sure, but I’d be surprised if it did.   /bin/sort is a 
> standard fixture in ‘nixes forever …   Could poke at it a bit though to find 
> out for sure :)
>  
Just thinking that DFSORT is probably more technologically advanced than
/bin/sort.  If the output of du is saved in a file, that file could probably
be used as input do DFSORT.  Less confident about piping directly into 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