On Tue, 1 May 2012, Tyler Smith wrote:

Ah, I get it now. It's not really an illegal 'filename', in terms of the
operating system, it's an illegal mapname in terms of Grass. So your Bash
is now correct, it's your Grass that is broken. For the output=$file part,
try something like this: output=$(basename $file)

Tyler,

  I saw 'basename ' in the original thread but have not before seen it.
Thought it was a Windows reference. Now I know. I also need to strip off the
.kml extension since A) it's not part of a legal SQL table name and 2) it's
not needed.

Thanks,

Rich

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to