>>      varlist=`echo "$varlist" | sed -e "s/\\\\$//g"
Yep, that did it!  But, what did it do?  Or, where can I find info that will
help me make sense of it?  FWIW, it looks to me like it's searching for
'\\$' (???).  Oooh.... it is!  But the '\\$' gets reduced to '\$' which then
works as desired.  But why?  Why doesn't good ol' '\$' work right out of the
box?

>>      var3="$var1\\n$var2"
I must admit, when I saw it my first thought was to slap my forehead (doh!).
But, when I tried it I got 'a\nb' instead of 'anb' like before.

On the upside...

        var3=`echo -e "$var1\n$var2"`

...does the trick.

No prizes this time, but an explanation of the sed piece might yield
something.:)

Thanks for your input!

bd



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

Reply via email to