How to put a comment at the begining of the sentence

I have a file shows as below. I would like to put # before CCCC. so how to do in Solaris. Here sed doesnot support -i

[StartUpTasks]

[RunTimeTasks]
AAAA
BBBB
CCCCC

DDDDD

EEEEE
FFFFFF

awk '/^CCCC/{$0="#"$0}1' file

Regards