How do I comment a .sh file?

Ẽm Thư

New member
How do I comment a .sh file?
Answer
A single-line comment starts with hashtag symbol with no white spaces (#) and lasts till the end of the line. If the comment exceeds one line then
put a hashtag on the next line and continue the comment. The shell script is commented out prefixing # character for single-line comment.
 

Tìm kiếm

Back
Top