[Color Computer] [coco] OS-9, alphabetizing directories..
Gene Heskett
gene.heskett at verizon.net
Fri Nov 25 00:35:32 EST 2005
On Thursday 24 November 2005 22:38, George Ramsower wrote:
>----- Original Message -----
>
>> On Wednesday 23 November 2005 20:08, George Ramsower wrote:
>>>I'm sure there is something to do this..
>>>
>>> Where can I find a utility to alphabetize a directory of files for
>>> OS-9?
>>>
>>> My CMDS directory is a wreck!
>>>
>>>
>>>George
>
>From: "Gene Heskett"
>Sent: Wednesday, November 23, 2005 8:40 PM
>
>> Hi George;
>>
>> A slightly flaky gsort was included in the multiview package, which I
>> re-wrote to do a bunch of cleanups while it was running, should be
>> gsort14 or some such on rtsi.
>>
>> My version zeros out everything after the high msb byte in the name
>> except the fd pointer. I'd found an instance or two where the
>> original could get confused, with the possibility of a file loss you
>> wouldn't find until you ran a dcheck on the drive.
>>
>> --
>> Cheers, Gene
>
> The Gsort.lzh on RTSI comes with your release notes and the source
> code. It did the trick. My CMDS directory looks a lot better now. It
> took about ten seconds to do the task of sorting that directory.
>
> It does not come with instructions. I suppose, since it was a
> replacement, it was assumed the operator would know how to use it. I
> did not. So I sorted a throw away directory about five times trying to
> find the HELP in this utility until I noticed the directory was
> sorted.
> Now I know! Simply execute Gsort and the working directory I am in,
> it will be sorted.
ISTR you can also give it a directory as an argument, but its optional,
no argument and it uses . Just cd'ing to the one you want sorted is
about as easy. I didn't really think it needed an extensive help screen
since it was intended to just replace the one in multiview.
If you take a look at a directory it has sorted with ded, you'll see its
nice & clean.
> Thanks, Gene!
You're welcome George.
>
>George
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.36% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
More information about the Coco
mailing list