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



When the shell is reading the command line what is the difference between text enclosed between d..

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

When the shell is reading the command line what is the difference between text enclosed between d..

Answer / rajeev shukla

" " 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

When the shell is reading the command line what is the difference between text enclosed between d..

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

Post New Answer

More Unix Commands Interview Questions

what is the shell for dos,nt operating systems?

1 Answers  


distinguish between paging and swapping?

1 Answers   Infosys,


How to view the hidden files in /etc directory?

10 Answers  


What are the general commands in using unix os for a beginner?

0 Answers  


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  






What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,


What is the output of : $ ps-e $ ps-a commands

5 Answers   IBM,


How do I open a port?

0 Answers  


What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,


What is the search command in unix?

0 Answers  


Where can I get the free download of Unix by Yeswant Kanetkar?

5 Answers  


Will rm -r* removes hidden files?

10 Answers  


Categories