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 _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
