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 meaning of First line of shell script ,what is meaning of #! pleas explain brifly
RAM one table colums a1,a2,a3,a4 respective values 2,4,7,8 KRISH one table colums a1,a2,a3,a4 respective values 3,4,6,9 IN RAM & KRISH a4 column if comparing values RAM A4 - KRISH A4 ( 8-9 =1 THEN print 5 or (RAM) a4 value 10 KRISH a4 values 2 then 10 -2 =8 print 5*8=40 or diff 5 print same
how to get part of string variable with echo command only?
What is echo in shell?
How to find duplicate record in file using shell script?
0 Answers IBM, Saama Tech, Wipro,
What is a shell made of?
Please give me example of " at command , contrab command " how to use
I want to connect to a remote server and execute some commands, how can I achieve this?
How to enable the shell to know what program should be run to interpret the script?
What happens when you type ls?
There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.
Why are shell scripts used?