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
- single quotes — Quotes that make every character between them literal, so nothing inside is expanded.
- escape sequence — A backslash followed by a character that together stand for something hard to type directly, such as \n for a line break.
Taught in
- Single Quotes, Double Quotes, Backslash — Bash Scripting & Command Line Automation