bash ANSI quoting

Oct 20, 2023

Bash strings quoted with $'<text here>' allow literal escapes to appear in the text.

So, $'\t' represents a one-character literal tab character, while '\t' is two characters, a slash followed by a t.

documentation here, including a full list of available escapes

↑ up