# Echo Removing New Line

I would like to cache a result from a long computation in bash, so I set a variable with this value, for my surprise I got everything in one line, instead of the desired multi-line output.

This behavior of echo command drove me crazy for a while.

The correct syntax is really subtle, involving double quotes "".

Now I’m able to use pipe chain to the next commands: