[gradsusr] Running the same command over multiple files

Tatiana.Gonzalez Tatiana.Gonzalez at noaa.gov
Fri Dec 10 10:57:35 EST 2010


Shay,
It's easier if you do it in a grad script.
http://www.iges.org/grads/gadoc/script.html

*open file1
'open .file1.ctl'
*open file2
'open .file2.ctl'
*open file3
'open .file3.ctl'
d u
d v
d u.2   //this handles file 2 etc
d v.2
d u.3
d v.3
you can also use a loop to open all the files, but if you only have a 
few this will work

Tatiana

On 12/10/2010 10:13 AM, shay barner wrote:
> Hi!
>
> I have multiple ctl files (700!) and I want to run the same command 
> over all these files.
>
> For each file I want to run:
> open filename
> d u
> d v
>
> I am not very experienced with Linux and Grads...
> how can I do this in a sctipt? What are the commands?
>
> Thanks!
> Shay.
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>    


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101210/1cb6c773/attachment-0003.html 


More information about the gradsusr mailing list