when I am doing this
echo -e "hello\nworld"
the result is like this
hello
world
But, Here I am trying to store the shell command result into a variable and I am trying to reuse that variable, like this
output=$(echo -e "hello\nworld")
echo $output
then the result is like this
hello world
But, I am expecting a result like the first one, printed in two lines. How to achieve this?