var = "a common string \n $var"
I am passing this var to some other method and I am printing var in that other method.i am not able to edit that other method. So echo -e
and printf
statements cannot be used by me. But I need that \n to be printed as new line instead of that exact literal.