How to include comments in your shell scripts?
Answers were Sorted based on User's Feedback
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 |
Answer / vipul dalwala
To comment multiple lines U can use
: '
comment1
comment2
comment3
'
| Is This Answer Correct ? | 0 Yes | 3 No |
what is the difference between writing code in shell and editor?
What is the command for " how many shell is running in your system or how many shell supported by your system " ?.
What is the use of "shift" command in passing parameters?
What are the default permissions of a file when it is created?
What is a file basename?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is meant by $1 in shell script?
Can you write a script to portray how set –x works?
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
how is the oppurtunities for unix in the software
Is cmd a shell?
How can you find out how long the system has been running?