[GRASS-user] v.rast.stats over a large vector file

Markus Neteler neteler at osgeo.org
Sun Nov 28 08:32:03 EST 2010


On Sun, Nov 28, 2010 at 12:50 PM, Hamish <hamish_b at yahoo.com> wrote:
> Hi,
>
> Markus N wrote:
>> I have uploaded an attempt to fix the problem to Addons-SVN.
>
> I'd suggest trying
>  col=`cat "$COLNAMETMP" | tr '\n' ' '`
>
> _always_ quote filenames, and the column name content is
> unlikely to contain control chars. probably the pipe to tr is
> not needed actually.
>
>
> However, this a few lines later is certainly a bashism:
>  ${col[0]}
>
> either drop the array usage or change the shebang at the top to
> be #!/bin/bash. I suggest modifying the shebang as the easiest
> solution.

that part isn't my code - I'll leave these changes to others (I am
not much familiar with bash, so decoding this into sh may be faster
done by others).

Markus


More information about the grass-user mailing list