Tim Michelsen <timmichelsen <at> gmx-topmail.de> writes:

> 
> Hello,
> I have a bunch of landsat images which I would like to import all into 
> one location. The files are all in the same directory.
> 
> How do I write a script to import them all at once:
> 
> like
> 
> start Grass with MyLocation
> 
> for file in path/to/files/
> r.in.gdal -e in=path/to/files/
> FILENAME.tif out=FILENAME
> 

try:

for f in /path/*.tif
do
   export fnam=`basename $f .tif`
   r.in.gdal -e $f out=${fnam}
done




_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser

Reply via email to