[Coco] 'head' and 'tail' for CoCo OS-9?

Wayne Campbell asa.rand at gmail.com
Sat Jan 2 19:21:32 EST 2010


OK. Let me get thi straight. don't want 'tail', can't get 'head', and it 
works better 'ded'. Hmmmm... and most people don't think programmers don't 
have a sense of humor. ;)

Wayne

----- Original Message ----- 
From: "Joel Ewy" <jcewy at swbell.net>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Saturday, January 02, 2010 3:20 PM
Subject: Re: [Coco] 'head' and 'tail' for CoCo OS-9?


> Tim Fadden wrote:
>> On 1/2/2010 3:48 PM, Joel Ewy wrote:
>>> Joel Ewy wrote:
>>>> Gene Heskett wrote:
>>>>> On Saturday 02 January 2010, Joel Ewy wrote:
>>>>>
>>>>>> Surely somebody has made these useful utils...  I can't find them on 
>>>>>> any
>>>>>> of my old floppies, or on RTSI, Maltedmedia, or any other source of 
>>>>>> CoCo
>>>>>> goodies.
>>>>>>
>>>>>> Ideas?
>>>>>>
>>>>>> JCE
>>>>>
>>>>> If the file locking still works correctly in the newer versions of 
>>>>> nitros9, list makes a reasonable substitute.  It tmode pause is on, 
>>>>> you have a head, and if its off, and you've started an assembly that 
>>>>> is making its listing, then that listing can be read in very close to 
>>>>> real time with list, which will read the file till it runs into the 
>>>>> currently locked by the assembler sector, and will dutifully wait till 
>>>>> that sector is written and unlocked, reading it when it can gain 
>>>>> access.
>>>>>
>>>>> There is a slight gap between the assemblers unlocking that sector and 
>>>>> locking the next as it writes, so there is an about 1 in a thousand 
>>>>> chance that list will read beyond the write, but you'll have to play 
>>>>> with it, a lot, to get exactly the timing glitch to effect a list. 
>>>>> Only with faster hard drives was I ever able to trigger it, never when 
>>>>> working on floppy's.
>>>>
>>>> I'm not sure that will quite do what I want, Gene.  I'm trying to shave 
>>>> a few hundred bytes off the end of binary files.  Maybe I can figure 
>>>> out how to make 'ded' do it for me.  I actually found a 'tail' program 
>>>> on one of my old CoCo disks, but it's 'head' I need.
>>>>
>>>
>>> Maybe I'd better restate the last part of that sentence before I get any 
>>> snide comments...  I still require the 'head' utility, or something like 
>>> it.  :)
>>>
>>> JCE
>>>> JCE
>>>>
>>>>>> -- 
>>>>>> 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
>>>>
>>>
>>>
>>> -- 
>>> Coco mailing list
>>> Coco at maltedmedia.com
>>> http://five.pairlist.net/mailman/listinfo/coco
>>>
>>>
>> Joel,
>>
>> I don't know anything about head, but I got tail.  Want me to email it to 
>> ya?  scred might work for ya to, go to the section you want, cut the 
>> chunk to a buffer and then write it to a new file.
>>
>> Any way,  I have tail.  :-)
>>
>>
>> Tim Fadden
>>
>
> Thanks Tim, but I've found that I have 'tail' as well.  Turns out I don't 
> need 'head' anyway because I can do it with 'ded'.  Sounds rather grim, 
> but that's the situation.
>
> JCE
>
>>
>>
>>
>> -- 
>> 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