bash block comment code example
Example 1: bash comment
# This is a Bash comment.
echo "This is Code" # This is an inline Bash comment.
Example 2: bash script block comments
# Apparently block comments don't exist in shell scripts.
# With vi or vim you can comment many lines at a time with this syntax:
:start_row, end_row s/^/#/
# For example:
:10,100s/^/#/ # To comment lines 10 to 100
# To uncomment, use:
:10,100s/^#//
Example 3: bash multiline comment
: '
This is a
very neat comment
in bash
'