[gradsusr] Running the same command over multiple files
shay barner
barner.shay at gmail.com
Fri Dec 10 11:06:38 EST 2010
Thanks Tatiana,
But the problem is I have around 700 files to open...
How can I use a script to open all the files in a loop?
Thanks in advance!
On Fri, Dec 10, 2010 at 5:57 PM, Tatiana.Gonzalez <Tatiana.Gonzalez at noaa.gov
> wrote:
> 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 listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
>
> _______________________________________________
> 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/e1f54637/attachment-0003.html
More information about the gradsusr
mailing list