ANSI-C quoting

The $'...' quoting form, which works like single quotes but turns escape sequences such as \n and \' into the real characters.

In more detail

It is the tidiest way to put a single quote or a tab into a string. It is a bash feature, though recent POSIX editions have added it too, so older sh versions may not support it.

Example

echo $'stop\'and go'

Related terms

Taught in

References