[gradsusr] passing whitespace from bash to grasds run
Joey Woodson
instantweathermaps at gmail.com
Mon Aug 22 07:37:03 EDT 2011
I don't have much experience with bash scripts, but usually there's a way to escape out quotes within quotes... Try encasing the inner variables with \" , as in grads -lbxc "run \"foo bar\" \"barfoofoo el farboo\"". Again, not sure if this will work.
Joey
http://www.instantweathermaps.com
On Aug 22, 2011, at 3:53 AM, Simon Kiertscher <simon.kiertscher at gmx.de> wrote:
> Hi all,
>
> is it possible to pass arguments with a whitespace from a bashscript to
> a grads script?
> I want to do something like this:
> grads -lbxc "run $var_1 $var_2 ... $var_n" but some of the var_x
> variables looks like "foo bar"
>
> Any ideas?
>
> Best Regards,
> Simon
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list