>>      var3=`echo -e "$var1\n$var2"`
>>...does the trick.

It's the -e option in echo that's doing this, it allows the \n to be 
read and used as a new line. e.g. echo -e "$var1\n$var2" should
read:
a
b
but echo var3 after above would still give:
a b

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

steve

_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to