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 difference between pipe(|) and tee command..

3 Answers   Cap Gemini, Rolta,


What are awk commands?

0 Answers  


How does pipe () work?

0 Answers  


in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?

6 Answers  


Give Command that will move a single file called "unix.txt"

7 Answers   IBM,






If we want to see first 35 lines of a file which command we have to use?

8 Answers  


What does touch command do in unix?

0 Answers  


What is the use of sed command in unix?

0 Answers  


How do I use nslookup?

0 Answers  


what is the command to list all files in a directory, including the hidden files in UNIX ?

9 Answers   CTS,


What command is used to switching between users in unix?

0 Answers  


What is nr in awk command?

0 Answers  


Categories