multiline comment in shell script code example

Example 1: comment in shell script

# This is a comment in Shell/Bash Script.
# '#' Symbol is used show a comment.

Example 2: shell comments

# This is a comment on powershell.
# It will work on bash too.

Example 3: linux multiline commet

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

Example 4: multiline comment in bash

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

Example 5: single line comment in shell script

# This is a Bash Single Line Comment.
echo "This is Code" # This is an inline Bash comment.

Example 6: multi line comment in shell script

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

Tags:

Php Example