How to include comments in your shell scripts?

Answers were Sorted based on User's Feedback



How to include comments in your shell scripts?..

Answer / ranjana

# comments

Is This Answer Correct ?    4 Yes 0 No

How to include comments in your shell scripts?..

Answer / rameshs

#!/bin/bash
echo "Say Something"
<<COMMENT1
your comment 1
comment 2
blah
COMMENT1
echo "Do something else"

Is This Answer Correct ?    0 Yes 1 No

How to include comments in your shell scripts?..

Answer / vipul dalwala

To comment multiple lines U can use

: '
comment1
comment2
comment3
'

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Shell Script Interview Questions

Is bash a shell script?

0 Answers  


What are filters explain sort with all the options available?

0 Answers  


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

0 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


is there any command to find user password?

4 Answers  






What are the different types of commonly used shells on a typical linux system?

0 Answers  


How will you list only the empty lines in a file (using grep)?

4 Answers   ANZ,


Why are there shells on the beach?

0 Answers  


What is echo in shell?

0 Answers  


What are the Different types of shells?

5 Answers  


What is the first line of a shell script called?

0 Answers  


How do you create a shortcut in linux?

0 Answers  


Categories