Ravi Sir's Cards › AWS
Quotes in 4 rules
This revision card explains Quotes in 4 rules. It starts from the need that single quotes — exact text. It describes double quotes — variables expand. The how-to section notes always quote variables. An example on the card is example.
Read card text
What this card says
Why do we need it?
Single quotes: exact text.
What is it?
Double quotes: variables expand.
How to do it
Always quote variables.
Example
Example.
echo "Hello $USER"