quoting

Bash ANSI-C quoting

Decodes supported backslash escapes into characters; resulting text is treated as quoted. Shell variables cannot store embedded NUL bytes.

Formal Syntax & Structure

bash syntaxbash
$'text\tmore'

Return Value

behavior

See the syntax and description for shell interpretation or output.

Working Example

Example Snippetbash
printf '%s\n' $'name\tscore' $'Sara\t9'printf '%s\n' "name\tscore"
Bash Reference