<div dir="ltr">Thanks Tatiana,<div><br></div><div>But the problem is I have around 700 files to open...</div><div>How can I use a script to open all the files in a loop?</div><div><br></div><div>Thanks in advance!</div><div>
<br><br><div class="gmail_quote">On Fri, Dec 10, 2010 at 5:57 PM, Tatiana.Gonzalez <span dir="ltr"><<a href="mailto:Tatiana.Gonzalez@noaa.gov">Tatiana.Gonzalez@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Shay,<br>
It's easier if you do it in a grad script.<br>
<a href="http://www.iges.org/grads/gadoc/script.html" target="_blank">http://www.iges.org/grads/gadoc/script.html</a><br>
<br>
*open file1<br>
'open .file1.ctl'<br>
*open file2<br>
'open .file2.ctl'<br>
*open file3<br>
'open .file3.ctl'<br>
d u<br>
d v<br>
d u.2 //this handles file 2 etc<br>
d v.2<br>
d u.3<br>
d v.3<br>
you can also use a loop to open all the files, but if you only have a
few this will work <br>
<br>
Tatiana<div><div></div><div class="h5"><br>
<br>
On 12/10/2010 10:13 AM, shay barner wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">
<div dir="ltr">Hi!<br>
<br>
I have multiple ctl files (700!) and I want to run the same command
over all these files.<br>
<br>
For each file I want to run: <br>
open filename<br>
d u<br>
d v<br>
<br>
I am not very experienced with Linux and Grads...<br>
how can I do this in a sctipt? What are the commands?<br>
<br>
Thanks!<br>
Shay.<br>
</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
<br>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div>