[Coco] Source code request...

Dave daveekelly at earthlink.net
Sun Sep 5 02:13:31 EDT 2004


Neil Morrison wrote:
> Use 'tr'.
> 
> $ tr '\012' '\015' <sourcefile >destfile
> 
> should do it. Be sure to use forward quotes, not backquotes.

Ok, what you show above works.

Why does this give me zero length files?

for i in *.c; do echo $i; tr '\015' '\012' <$i >$i; done

also, can I do this?
for i in *.c *.h
and take care of 2 extensions at one pass.







More information about the Coco mailing list