[GRASS-dev] Re: [GRASS GIS] #1365: Import raster files - Batch
import
GRASS GIS
trac at osgeo.org
Tue May 17 19:48:30 EDT 2011
#1365: Import raster files - Batch import
------------------------------------------------+---------------------------
Reporter: lluis | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: import, batch, raster files, wxGUI | Platform: Linux
Cpu: x86-64 |
------------------------------------------------+---------------------------
Comment(by hamish):
> for txt in *.txt; do r.in.gdal -o in="${txt}" out="${txt}" ; done
no idea about the wxgui bug, but fwiw in the scripting, ${} does nothing,
just use "$txt", and you can strip off the .txt from the output name with
either {{{ out=`basename "$txt" .txt` }}}, or back with the curly
brackets: {{{ out="${txt%.txt}" }}}.
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1365#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list