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 to unzip the contents of the gzip file
what is the command to list files in a directory in UNIX?
What is the command to find maximum memory taking process on the server?
What do chown command do?
what is the difference between "cron" command and "at" command?
If we want to see first 35 lines of a file which command we have to use?
What is the difference between pipe and xargs?
Can you enlist some commonly used network commands?
what is the difference between SED and GREP ? Which one is more better and why?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
what are the uses of filters?
How to get the operating system's information in unix?