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 |
Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
How to customise the other shell?
How to check if a directory exists?
What is shell variable?
what does "kill -9" and "kill -1" do
How will I insert a line "abcdef" at every 100th line of a file?
What is batch file programming?
How do I debug a shell script?
What is the crontab?
What is gui scripting?
Is shell scripting a programming language?