[Coco] Source code request...

James Dessart james at skwirl.ca
Sun Sep 5 07:34:36 EDT 2004


On 5-Sep-04, at 2:13 AM, Dave wrote:

> Why does this give me zero length files?
>
> for i in *.c; do echo $i; tr '\015' '\012' <$i >$i; done

Because you're writing to the file (in a truncating manner) while 
trying to read from it. I've done the same thing myself, over and over. 
:) try out.$i or something, and then you can rename the files 
afterwards.

James




More information about the Coco mailing list