probably a bit late with this but;

> >     varlist=`echo "$varlist" | sed 's/$//'`
> 
varlist=`echo "$varlist" | sed 's/\\$//'`

> > 2) Given two variables, say var1="a" and var2="b", I want to create var3
> > such that it is "a<newline>b", i.e 'echo "$var3"' produces:
> >
> >     a
> >     b
> >
> 
You wont be able to store the result in a variable like that, but you can
use 

echo $varlist | tr ' ' \\n

to display the variable as
a
b

steve



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

Reply via email to