[GRASS-dev] bug in v.db.renamecol [was: Re: [GRASS-user] Rename multiple sqlite columns at once]

Moritz Lennert mlennert at club.worldonline.be
Wed Nov 19 04:15:26 EST 2008


On 19/11/08 02:49, Hamish wrote:
> I would suggest like:
> 
> oldcoltype="`db.describe -c table="$table" database="$database" driver="$driver" | grep -w "$oldcol" | cut -d':' -f3`"
> 
> 
> - always quote variables which could contain spaces (even in error).
> - use "grep -w" to only look for words, not strings


Committed as such. Thanks for the tip !

Moritz


More information about the grass-dev mailing list