>> Now what you should do is store the \n's in var3 like:
>> var3=`echo "$var1\n$var2"`
>> after which:
>> echo -e $var3
>> would give the desired output
Yep, that works too. But :), var3=`echo -e "$var1\n$var2"` seems to be a
bit more flexible in that 'echo $var3' produces...
a b
...and 'echo "$var3"' produces:
a
b
IOW, I can treat the list as space or line delimited. Using var3=`echo
"$var1\n$var2"` eliminates the ability to treat it as a space delimilted
list as 'echo $var3' and 'echo "$var3"' both produce 'a\nb'.
Thanks again for your input -- it's getting me to think beyond where I would
have otherwise!
bd
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list