I want to print double quotes using echo statement in shell programming.
Example:
echo "$1,$2,$3,$4";
prints xyz,123,abc,pqrs
How to print "xyz","123","abc","pqrs";
I had tried to place double quotes in echo statement but its not being printed.
Use
printf
, no escaping is required:and the trailing
;
gets printed too!You should escape the
"
to make it visible in the output, you can do this :You just have to quote them:
As noted here: