Echo newline in Bash prints literal \n
echo $'hello\nworld'
prints
helloworld
$''
strings use ANSI C Quoting:
Words of the form
$'string'
are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard.