[GRASS-user] Rename multiple sqlite columns at once
Glynn Clements
glynn at gclements.plus.com
Fri Nov 7 01:39:25 EST 2008
Moritz Lennert wrote:
> >> I think this is because of the quotes:
> >>
> >> tempcolumn="$tempcolumn""\_tmp"
> >>
> >> But actually, trying out your entire original script, I don't see
> >> where
> >> the problem is. The attached version seems to work perfectly for me
> >> (just slightly simplified from your original version):
> >>
> >> What exactly did not work when you tried this ?
> >>
> >> Moritz
> >
> > Moritz,
> > thank you for your time.
> >
> > 1. I *corrected* the double quotes and re-run the script. [Script +
> > output attached]
>
> 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"
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list