[GRASS-user] Import .kml with v.in.ogr; GRASS-6.5.svn
Rich Shepard
rshepard at appl-ecosys.com
Tue May 1 17:28:55 EDT 2012
On Tue, 1 May 2012, Imre Bornemisza wrote:
> for file in $(ls -1 /home/rshepard/projects/data/*.kml); do
> # $() - command substitution
> v.in.ogr dsn="$file" out="$file"; done
> # out='$file' - it means that you get a file with the name "dollarfile"
Imre,
I, too, was suspicious of the single quotes (may need to be backticks
instead). Replacing them with double quotes in the output file name still
throws an illegal file name error:
Illegal filename. Character </> not allowed.
ERROR: </home/rshepard/projects/data/wetlands.kml> is an illegal file name
Back to the ORA Bash book.
Rich
More information about the grass-user
mailing list