On 07-Dec-10 21:03:16, Richard Parsons wrote:
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
Well, the following works:
echo "$VARIABLE" 1 2 3
but I'm not sure what the explanation is! Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) ted.harding@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 10-Dec-10 Time: 18:06:43 ------------------------------ XFMail ------------------------------