Finding pattern & prepending a line with text

Hello Dudes,

I have a task to make a unix shell script that should search for a
specific TEXT in a file.If that TEXT is found, shell script should add
a comment statement before that TEXT line.

Ex : LINE 1 xxxxx
LINE 2 xxxx CALL xxxx
LINE 3 xxxx PERFORM UNTIL

if i am looking for CALL as TEXT then shell script should add

comment statement after LINE 1.

Can somebody help me with that?

Thanks in advance
krishna

"Without GOD i cannot,Without ME god will not"

Try sed with i (insert command):
$ cat file | sed -e '/TEXT/ i COMMENT'

$ cat logfile
Ex : LINE 1 xxxxx
LINE 2 xxxx CALL xxxx
LINE 3 xxxx PERFORM UNTIL
$ cat logfile | sed -e '/CALL/ i COMMENT'
Ex : LINE 1 xxxxx
COMMENT
LINE 2 xxxx CALL xxxx
LINE 3 xxxx PERFORM UNTIL