How to use bash script put Multiple Line Comment. Would you like to use bash script comment? Bash script the essential for DevOps Roles. The syntax comment in a Bash script comment as below
Bash script comment
Single line comment
# Comment line 1 # Comment line 2
HERE DOCUMENT COMMENT
<<COMMENT Comment 1 Comment 2 Comment N COMMENT
Multiple line comment
: ' This is a multiple line comment '
Example Bash script comment
#!/bin/bash _foo="Wellcome to Devopsroles.com" # Single line 1 # Single line 2 <<COMMENT Comment 1 Comment 2 Comment N HERE DOCUMENT comment COMMENT : ' This is a multi line comment ' echo ${_foo}
The screen output terminal:
Conclusion
Thought the article, you can use Bash script comment as above. I hope will this your helpful. More details refer to Bash script.