how to comment multiple lines in shell script
1.
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.
Code:
:<< 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.
2.
Else within vi you could issue
Code:
:10,20s/^/#/g
No comments:
Post a Comment