multiline comment in bash code example

Example 1: multiline comment in bash

# Just do something like this for multiple line comment

: 'I am the first line and
   the second line and 
   the third line here
   '
# Don't forget the : sign

Example 2: linux multiline commet

# if [[ $VAR -gt 10 ]]; then
#  echo "Variable is greater than 10."
# fi

Example 3: multiline comment in bash

: << 'comment1'
	what ver you want to comment
comment1

Example 4: multi line comment in shell script

# Multi Line Comment
: '
This is a
very neat comment
in bash
'

Example 5: bash multiline comment

: '
This is a
very neat comment
in bash
'

Tags:

Misc Example