Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

'single' vs "double"

This comparison card contrasts 'single' and "double". 'single' is described as exact text, no expansion. "double" is described as $var and $( ) expand. The card pairs 'single' with fixed strings, regex, and "double" with messages with variables.

'single' vs
'single' vs "double" · Download PNG
Read card text

What this card says

Quotes

'single'

Exact text, no expansion.

"double"

$var and $( ) expand.

Key points

Cannot hold a single quote.

Escape $ with backslash.

Example

echo '$HOME'

Use when

Fixed strings, regex.

Messages with variables.

See all AWS revision cards