[gradsusr] Continuation character in scripting language?

Ricardo Hallak ricardo.hallak at iag.usp.br
Mon Mar 31 14:33:16 EDT 2014


Ok, 
I have never seen such continuation character in Grads. This is the reason by which I use % to concatenate lines in a huge command. Anyway, it works, although the command is not so clear in the script as it is in Fortran. 

Greetings, 
Ricardo 

----- Mensagem original -----

> De: "Jeff Duda" <jeffduda319 at gmail.com>
> Para: "GrADS Users Forum" <gradsusr at gradsusr.org>
> Enviadas: Segunda-feira, 31 de Março de 2014 15:09:33
> Assunto: Re: [gradsusr] Continuation character in scripting language?

> No, that's not what I'm looking for. That's the concatenation
> operator. I'm looking for a symbol that can extend very long command
> lines across multiple lines of text.

> For example,

> script command
> script command
> 'define var'
> 'define var2'
> 'define var3 = function of var1 + function of var 2 + function of
> other vars + function of other script variables + function of vars
> squared + other terms + more other terms + more more other terms
> ...'

> I'd want to be able to put the above line on multiple lines of text
> instead of leaving it all on one.

> Jeff

> On Mon, Mar 31, 2014 at 1:01 PM, Ricardo Hallak <
> ricardo.hallak at iag.usp.br > wrote:

> > Hi Jeff,
> 

> > hope this is what you are looking for:
> 

> > For very large commands, you can concatenate strings:
> 

> > string1="averylargecommand_1"
> 
> > string2=" averylargeciommand_2"
> 

> > 'd 'string1&string2
> 

> > You have to manipulate blank spaces and quotes properly.
> 

> > Hope this helps,
> 
> > Ricardo
> 

> > > De: "Jeff Duda" < jeffduda319 at gmail.com >
> > 
> 
> > > Para: "GrADS Users Forum" < gradsusr at gradsusr.org >
> > 
> 
> > > Enviadas: Sexta-feira, 28 de Março de 2014 18:36:14
> > 
> 
> > > Assunto: [gradsusr] Continuation character in scripting language?
> > 
> 

> > > Hello,
> > 
> 
> > > Is there a continuation character in the Grads scripting language
> > > (i.e., something analogous to the & character for FORTRAN)?
> > 
> 

> > > Jeff Duda
> > 
> 

> > > --
> > 
> 
> > > Jeff Duda
> > 
> 
> > > Graduate research assistant
> > 
> 
> > > University of Oklahoma School of Meteorology
> > 
> 
> > > Center for Analysis and Prediction of Storms
> > 
> 

> > > _______________________________________________
> > 
> 
> > > gradsusr mailing list
> > 
> 
> > > gradsusr at gradsusr.org
> > 
> 
> > > http://gradsusr.org/mailman/listinfo/gradsusr
> > 
> 

> > _______________________________________________
> 
> > gradsusr mailing list
> 
> > gradsusr at gradsusr.org
> 
> > http://gradsusr.org/mailman/listinfo/gradsusr
> 

> --
> Jeff Duda
> Graduate research assistant
> University of Oklahoma School of Meteorology
> Center for Analysis and Prediction of Storms

> _______________________________________________
> 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/20140331/a7169204/attachment.html 


More information about the gradsusr mailing list