7 Dec
2010
7 Dec
'10
9:03 p.m.
If I do: echo "1 2 3" > test and then cat test, then I can see the contents of the file, including the new lines. However, if I do: VARIABLE=$(cat test) echo $VARIABLE then the output has spaces instead of new lines. Why is that? And how could I stop that from happening? TIA, Richard