Wednesday, December 29, 2010

How to use multiple line comments in bash scripting

All single line comments in bash begin with # symbol, except for the first line (#!/bin/bash)
e.g.;
# this is an example of single line comment.

You can use HERE DOCUMENT feature to create multiple line comment

<<MULTILNCMNT
welcome to the go2linuxworld.blogspot.com
this is an example of
multiple line comment
in bash
MULTILNCMNT

No comments:

Post a Comment

There was an error in this gadget