Hưng Thịnh
New member
How do I add comments to a Linux script?
Answer
To write single line comments in bash,
start the line with the hash symbol (#). HashBang (#!) in the first line of the script file is the only exception. Following is an example Bash Script that has single line comments in between commands.
Answer
To write single line comments in bash,
start the line with the hash symbol (#). HashBang (#!) in the first line of the script file is the only exception. Following is an example Bash Script that has single line comments in between commands.