I was trying to execute new line using echo and tried following two commands:
First command:
echo $'Hello World\nThis is a new line'
ResposeResponse:
Hello World
This is a new line
Second command:
echo $"Hello World\nThis is a new line"
Response:
Hello World\nThis is a new line
My question is what's the difference between string wrapped with $' ' vs string wrapped with $" " in bash echobash's echo?