[GRASS-user] Rename multiple sqlite columns at once

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Fri Nov 7 13:20:40 EST 2008


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.



More information about the grass-user mailing list