When the shell is reading the command line what is the
difference between text enclosed between
double quotes ( ” ) and text enclosed between signal quotes
( ’ )?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the command 'ls -x chapter[1-5]' ?

659


How to use grep command to list find the records of a file containing 10 different strings?

643


What is awk good for?

582


How do I use grep to search for a file?

580


Is ‘du’ a command? If so, what is its use?

633






What is a command and examples?

583


Which command is used to copy files?

556


Is it inbetween or in between?

578


What command is used to check the current users?

592


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

558


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

589


Which command is used to kill the last background job?

771


why metadb requires a seperate slice to create Solaris volume manager

2552


What is the behavioural difference between cmp and diff commands?

672


Write a command to display a file’s contents in various formats?

621