* Sort for DIR command
@ 2000-12-12 22:29 Ed Albert
2000-12-13 7:14 ` Didier Morandi
0 siblings, 1 reply; 4+ messages in thread
From: Ed Albert @ 2000-12-12 22:29 UTC (permalink / raw)
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 ....
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sort for DIR command
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
0 siblings, 1 reply; 4+ messages in thread
From: Didier Morandi @ 2000-12-13 7:14 UTC (permalink / raw)
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)
D.
--
--------------------------------------------------------------------
Le Pachacamac COMPAQ/DEC/APPLE 34 av. G. Pompidou, 81500 Lavaur France
http://www.pachacamac.com *** Une passion pour l'excellence ***
T�l. : 05.63.58.58.63 Fax. : 05.63.58.58.33 GSM : 06.88.97.61.48
>>> L'association des distributeurs APPLE : http://www.ada.mac-fan.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sort for DIR command
2000-12-13 7:14 ` Didier Morandi
@ 2000-12-14 0:55 ` Ed Albert
2000-12-14 3:41 ` Ian Burgess, University of Queensland
0 siblings, 1 reply; 4+ messages in thread
From: Ed Albert @ 2000-12-14 0:55 UTC (permalink / raw)
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)
>
> D.
> --
> --------------------------------------------------------------------
> Le Pachacamac COMPAQ/DEC/APPLE 34 av. G. Pompidou, 81500 Lavaur France
> http://www.pachacamac.com *** Une passion pour l'excellence ***
> T�l. : 05.63.58.58.63 Fax. : 05.63.58.58.33 GSM : 06.88.97.61.48
>
> >>> L'association des distributeurs APPLE : http://www.ada.mac-fan.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sort for DIR command
2000-12-14 0:55 ` Ed Albert
@ 2000-12-14 3:41 ` Ian Burgess, University of Queensland
0 siblings, 0 replies; 4+ messages in thread
From: Ian Burgess, University of Queensland @ 2000-12-14 3:41 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-12-14 3:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox