commenting more then 1 line

Hi all,

I m new for linux ... but now i will do this continuously. So my question is how to comment more then 1 line i dont wanna put # to each line.. my script is too big...

or u can tell me that how can i add # to sellected lines means if i wanna put # from line number 10 to 20 then how can i do.. this will also help me...

Thanks
Ajay

Wrap the lines within :<<MARKER.. MARKER like shown below

Instead of MARKER you can use any string which is not used in your script. Preferably a unique string.

:<<COMMENT
a line in the script.
another line in the script
.
.
yet another line in script.
COMMENT

The above is the easiest thing to do. Else within vi you could issue

:10,20s/^/#/g
sed "10,20 s/^/#/" file > tmp
mv tmp file

Thanks Vino and Anbu.. Thank u very much to both of u..