#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>

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to