Hi All,

Bash: I am trying to use a variable to hold
a log and add to it as I go.  I can do this
with a temp file, but I'd rather do it with
a variable.

I have gotten this far:

A=$(echo -e  "abc\n")
A="$A"$(echo -e  "def\n")
A="$A"$(echo -e  "ghi\n")

echo $A
abcdefghi

echo -e $A
abcdefghi

What am I doing wrong?  Is it better to just break
down and just use a file?

Many thanks,
-T

Reply via email to