[Coco] [coco] Shell Scripts

Bob Devries devries.bob at gmail.com
Mon Dec 17 01:15:08 EST 2007


To delete all the files in /h0/test use this:

:del /h0/test/*

Note the leading colon!

This will *not* work in the stock Tandy version of OS9, but will work in 
NitrOS9.

--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

----- Original Message ----- 
From: "George Ramsower" <georgeramsower at gmail.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Monday, December 17, 2007 3:49 PM
Subject: Re: [Coco] [coco] Shell Scripts


> Is there a utility that will just delete the files in a directory without 
> deleting the directory?
>
> ----- Original Message ----- 
> From: "Robert Gault" <robert.gault at worldnet.att.net>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Sunday, December 16, 2007 11:18 PM
> Subject: Re: [Coco] [coco] Shell Scripts
>
>
>> George Ramsower wrote:
>>> I've been trying to get a few OS9 commands to run in a shell script and 
>>> have found a few problems....
>>>
>>> One problem I'm having is trying to delete a directory.
>> ><snip>
>>
>> I've tried lots of routes to get some OS-9 commands to work in scripts 
>> but some just won't do it in any reasonable fashion. In fact, I wrote a 
>> modified version of deldir for just this purpose. It does not check with 
>> you before deleting a directory so you don't want to make any mistakes.
>>
>> If you would be satisfied with a new command and not use deldir, I can 
>> send you my version kildir. It will work from the command line or within 
>> a script with the same syntax as deldir.
>>
>> kildir test
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco 




More information about the Coco mailing list