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

How to get the last line from a file using just the terminal?

0 Answers  


When we login into our account which files are executed?

3 Answers   Chip Quest,


What is egrep?

2 Answers  


What is the syntax of "expr" command?

2 Answers  


What is shell environment?

0 Answers  






Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"

1 Answers  


what is the difference between sh & bash shell?

1 Answers  


what does "kill -9" and "kill -1" do

2 Answers   Amazon,


What is awk in shell scripting?

0 Answers  


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

2 Answers  


How many fields are present in a crontab file and what does each field specify?

0 Answers  


How to add some content in any file at some desired location without using VI or some other editor in UNIX

2 Answers  


Categories