It causes escape sequences to be interpreted.
$ echo $'Name\tAge\nBob\t24\nMary\t36'
Name Age
Bob 24
Mary 36
After those sequences are expanded, the result is single-quoted, as if the dollar sign had not been present.
More Related Contents:
- Difference between single and double quotes in Bash
- Expansion of variables inside single quotes in a command in Bash
- How can I escape a double quote inside double quotes?
- How to execute a bash command stored as a string with quotes and asterisk [duplicate]
- Double vs single quotes
- Indirect variable assignment in bash
- Why isn’t tilde (~) expanding inside double quotes? [duplicate]
- Variable containing multiple args with quotes in Bash
- How to keep quotes in Bash arguments? [duplicate]
- How to escape history expansion exclamation mark ! inside a double quoted string?
- bash alias command with both single and double quotes
- How to substitute quoted, multi-word strings as arguments?
- Correct Bash and shell script variable capitalization
- Using getopts to process long and short command line options
- How do I compare two string variables in an ‘if’ statement in Bash? [duplicate]
- Brace expansion with a Bash variable – {0..$foo}
- “~/Desktop/test.txt: No such file or directory”
- Associative arrays: error “declare: -A: invalid option”
- How do I get the directory where a Bash script is located from within the script itself?
- Bash: Syntax error: redirection unexpected
- Bash inserting quotes into string before execution
- Get just the filename from a path in a Bash script [duplicate]
- Rename multiple files in shell [duplicate]
- Is there a way to make bash job control quiet?
- How to store the output of a command in a variable at the same time as printing the output?
- Why is bash errexit not behaving as expected in function calls?
- bash script loop through two variables in lock step
- When does command substitution spawn more subshells than the same commands in isolation?
- Rsync syntax error when run from bash script
- How to insert a new line character after a fixed number of characters in a file