<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks to all of you who helped solve my problem.<br><br>I was able to run the script from the folder where the files I needed to process were stored.&nbsp; <br><br>I still have to tweak the script as the program says that it doesn't recognize "*".&nbsp; The script uses the "*" symbol in the following manner:<br><br><pre>for file in A*_MO_CHLO_4&nbsp;; do<br>  echo "map: $file"<br><br>  gdal_translate -a_srs "+init=epsg:4326" -a_nodata 65535 \<br>    -a_ullr -180 90 180 -90 -co "COMPRESS=PACKBITS" \<br>    $file ${file}_prep.tif<br><br>  r.in.gdal in=${file}_prep.tif out=$file<br>done<br></pre>Can anyone tell me the language the program is in?&nbsp; I am not familiar with it and it would be good to know more about it.<br><br>Thanks again for your help.<br><br>Andrew<br><br>&gt; Date: Tue, 18 Aug 2009 18:04:59 -0700<br>&gt; From: hamish_b@yahoo.com<br>&gt; Subject: Re: [GRASS-user] Running Scripts in GRASS<br>&gt; To: andrew.lewin@sympatico.ca; neteler@osgeo.org<br>&gt; CC: grass-user@lists.osgeo.org<br>&gt; <br>&gt; Markus wrote:<br>&gt; &gt; Perhaps we should cook up a Wiki page describing this briefly?<br>&gt; <br>&gt; <br>&gt; shrug. or as it's an external task, delegate the matter and add a link to some good document on the web about unix shell scripting. I'm sure there are many out there already. (but<br>&gt; whatever)<br>&gt; <br>&gt; <br>&gt; Andrew, another thing to realize is that these are just terminal prompt commands strung together via cut and paste into a file.<br>&gt; <br>&gt; Also the wiki instructions were not written with a script in mind, so you will probably have to adjust a few filenames etc by hand.<br>&gt; <br>&gt; I just updated the simple XY method example to use the new<br>&gt; 'r.in.gdal -l' directly into a lat/lon location, but I think<br>&gt; the gdal_translate method is better.<br>&gt; <br>&gt; <br>&gt; typically shell scripts are given a shebang line which looks<br>&gt; like:<br>&gt; <br>&gt; #!/bin/sh<br>&gt; <br>&gt; this tells the OS that when you run the program it should use<br>&gt; the shell program (found in /bin/sh) to run it.<br>&gt; <br>&gt; <br>&gt; <br>&gt; Hamish<br>&gt; <br>&gt; <br>&gt; <br>&gt;       <br>&gt; <br></body>
</html>