[Info-vax] Still no DIR/SORT_BY_TIME

Paul Sture nospam at sture.ch
Sat Aug 15 18:18:42 EDT 2015


On 2015-08-15, AEF <spamsink2001 at yahoo.com> wrote:
> On Saturday, August 15, 2015 at 4:59:29 AM UTC-4, Paul Sture wrote:
>> On 2015-08-15, AEF <spamsink2001 at yahoo.com> wrote:
>> > On Thursday, August 13, 2015 at 8:55:12 AM UTC-4, VAXman- wrote:
>> 
>> >> 
>> >> I have products I support that are free of charge; are those not
>> >> permissable in your environment?
>> >
>> > I don't know.
>> >
>> > Anyway, I find 
>> >
>> > ls -ltr | tail
>> >
>> > quite handy. Just can't believe that VMS still doesn't have something
>> > like that after ~38 years. I was just remarking about it. 
>> 
>> One I've just come across recently in the Linux world (but
>> unfortunately not on OS X or other Unix-based systems):
>> 
>> sort -h, --human-numeric-sort
>>            compare human readable numbers (e.g., 2K 1G)
>> 
>> This is particularly useful for the output of 'du':
>> 
>> du -h | sort -h
>
> Interesting. Haven't seen this one before. For du I've been using this:
>
> new-host:ENGLISH root# du -k | sort -nr
> 2168	.
> 256	./GRAMMAR
> 228	./GRAMMAR/ADJECTIVE ORDER
> 52	./PUNCTUATION
> new-host:ENGLISH root# 
>
> Works even on Solaris!

-m for Megabytes also works across platforms, and I note that OS X
is ahead of the pack (for once) with -g for GB

-- 
"I have spent most of the day putting in a comma and
 the rest of the day taking it out."  -- Oscar Wilde



More information about the Info-vax mailing list