Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

0 Answers  


How to find and replace the below command?

2 Answers   HCL,


Which RAID Levels supported by LVM?

5 Answers  


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

0 Answers  


what is the use of "grep" command?

6 Answers   HCL,


what is the functionality of kernel in unix architecture?

13 Answers   HCL,


Are you in or at the office?

0 Answers  


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

3 Answers  


What is the comma to show the space allocation of files?

0 Answers  


What do you mean by zambie process?

6 Answers  


what is the difference between pipe(|) and tee command..

3 Answers   Cap Gemini, Rolta,


How do you move or rename a file or directory?

1 Answers  


Categories