Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ccburgess@uqstu.jdstory.uq.edu.au (Ian Burgess, University of Queensland)
Subject: Re: Sort for DIR command
Date: 14 Dec 2000 03:41:35 GMT	[thread overview]
Message-ID: <919fhf$m45$1@bunyip.cc.uq.edu.au> (raw)
In-Reply-To: 3A381A65.C6F5A4F@axe.humboldt.edu

In article <3A381A65.C6F5A4F@axe.humboldt.edu>, Ed Albert <cea7002@axe.humboldt.edu> writes:
>Fiddled with this half a dozen different ways ... can't get it to do the
>trick at all...  Noted that the exclamation should have been the |
>(pipe) character and values are needed for the sort key,, but must be
>missing something else.
>
>Didier Morandi wrote:
>> 
>> Ed Albert wrote:
>> >
>> > Anyone done a DCL to do sorted directories in VMS?  Would like to be
>> > able to sort by various properties, like date/time, owner, extension,
>> > etc.  Thought that I would check here before I began doing my own ....
>> 
>> To sort by size:
>> 
>> $ pipe dire_/col=1/not/noh/siz=all ! sort/key=(pos:x,size:y) sys$input
>> 
>> or by owner:
>> 
>> $ pipe dire_/col=1/not/noh/owner ! sort/key=(pos:x,size:y) sys$input
>> 
>> (not tested)
>> 
 (Why not!)

Can be made to work...
e.g.,
 $ pipe direct /col=1/notra/nohead/siz/wid=file=60 |sort sys$input -
  /key=(pos=60,siz=8) sys$output

You need to examine the output from DIRECT and read HELP DIRECT
to see what you need to do to get it all on one line.

Not sure what use this is, though, compared with the more useful
/SELECT qualifier in DIRECT.

If you want the largest files, rather than wade through a full sorted
list to the end, just use
 $ direct /select=size=minimum=10000  or whatever

Have a good read of the help before investing in something which
will be slow and less useful than what is already there, is my advice.


Cheers,
       Ian
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Ian Burgess                                     I.Burgess@its.uq.edu.au
Information Technology Services                 Phone:   61 7 336 54074
Prentice Building                                          0401 993 458
The University of Queensland
BRISBANE AUSTRALIA 4072                               www.its.uq.edu.au


      reply	other threads:[~2000-12-14  3:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-12 22:29 Sort for DIR command Ed Albert
2000-12-13  7:14 ` Didier Morandi
2000-12-14  0:55   ` Ed Albert
2000-12-14  3:41     ` Ian Burgess, University of Queensland [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox