When the shell is reading the command line what is the
difference between text enclosed between
double quotes ( ” ) and text enclosed between signal quotes
( ’ )?
Answers were Sorted based on User's Feedback
Answer / div
When the test in included in double quotes ("") it is
called as weak quotes. If the text is a variable the $text
within the quotes will give the resolved value.
In case if single quotes ('') i.e. Strong quotes, the text
is printed as it is even if it is states as $text.
| Is This Answer Correct ? | 13 Yes | 1 No |
" " is generaly used to print the value of variable
and ' ' is used to print same as given text...
for ex:-
f=rajeev
echo "file name is $f"
output:- file name is rajeev.
and
echo ' file name is $f'
output:- file name is $f
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / chakri
generally,take an example double quotes (") we used in
print the data.and single quote we used for(') for
| Is This Answer Correct ? | 4 Yes | 2 No |
How do I run a whois command?
How to display no of records in oracle using unix command?
How do you know about running processes of a particular user?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
what is the difference between commmands cmp and diff?
Is grep faster than awk?
What does the “echo” command do?
use of ls command
What is "type" command in unix?what is the functionality??
which command is used to stop a running process in unix?
Which command is used to kill the last background job?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,