From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,5f1177a57d00db1c X-Google-Attributes: gidf7344,public X-Google-Thread: 10b182,5f1177a57d00db1c X-Google-Attributes: gid10b182,public X-Google-Thread: 1164f8,5f1177a57d00db1c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2000-12-13 19:41:36 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!newshub1.rdc1.nsw.optushome.com.au!news1.optus.net.au!optus!bunyip.cc.uq.edu.au!uqstu.jdstory.uq.edu.au!CCBURGESS From: ccburgess@uqstu.jdstory.uq.edu.au (Ian Burgess, University of Queensland) Newsgroups: comp.os.vms,comp.org.decis,comp.sys.dec Subject: Re: Sort for DIR command Date: 14 Dec 2000 03:41:35 GMT Organization: The University Of Queensland Message-ID: <919fhf$m45$1@bunyip.cc.uq.edu.au> References: <3A36A6C5.FFD558E0@axe.humboldt.edu> <3A3721C7.4D7470DD@Easynet.fr> <3A381A65.C6F5A4F@axe.humboldt.edu> Reply-To: ccburgess@uqstu.jdstory.uq.edu.au NNTP-Posting-Host: admin1.jdstory.uq.edu.au X-Trace: bunyip.cc.uq.edu.au 976765295 22661 130.102.178.24 (14 Dec 2000 03:41:35 GMT) X-Complaints-To: news@uq.edu.au NNTP-Posting-Date: 14 Dec 2000 03:41:35 GMT Xref: supernews.google.com comp.os.vms:13282 comp.sys.dec:2004 In article <3A381A65.C6F5A4F@axe.humboldt.edu>, Ed Albert 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