On Fri, 2008-11-07 at 06:39 +0000, Glynn Clements wrote:
> Moritz Lennert wrote:
[...]
> > You still use quotes:
> > tempcolumn="$tempcolumn\_tmp"
> >
> > IIUC, the quotes will let the slash appear literally. So, just leave out
> > the quotes as follows:
> >
> > tempcolumn=$tempcolumn\_tmp
>
> If you just want to prevent the underscore from being treated as part
> of the variable name, use braces:
>
> tempcolumn=${tempcolumn}_tmp
>
> or, if the variable's value may contain spaces::
>
> tempcolumn="${tempcolumn}_tmp"
>
Thanks Glynn. I suppose this way it's safer.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user