Words of the form $'string'
are treated specially. The
word expands to string, with backslash-escaped characters replaced
as specifed by the ANSI C standard. Backslash escape sequences, if
present, are decoded as follows:
\a
\b
\e
\f
\n
\r
\t
\v
\\
\nnn
ASCII
code is the octal value nnn
(one to three digits)
\xnnn
ASCII
code is the hexadecimal value nnn
(one to three digits)
The result is single-quoted, as if the dollar sign had not been present.
Go to the first, previous, next, last section, table of contents.