I am storing the multiple lines in a variable and when I am trying to access them it is showing in a single line.
$ echo -e "A\nB"
A
B
$ VAR=`echo -e "A\nB"`
$ echo $VAR
A B
let me know is there any way to get the output as same as command. I want A, B to be in different lines while accessing it.