[ncl-talk] run ncl script in "bash" *.sh
Jatin Kala
jatin.kala.jk at gmail.com
Wed Aug 6 18:58:58 MDT 2014
Erika,
I think you have a typo:
!/bin/bash/
Should be:
#!/bin/bash
On 7/08/14 10:56 AM, Yuqiang Zhang wrote:
>
> Hi Erika,
>
> For my case, I am using csh "#!/bin/csh", and "*ncl script.ncl" *works
> for me.**
>
> Regards,
>
> Yuqiang
>
> *From:*ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu]
> *On Behalf Of *Erika Folova
> *Sent:* Wednesday, August 06, 2014 5:41 PM
> *To:* NCL-talk
> *Subject:* [ncl-talk] run ncl script in "bash" *.sh
>
> Dear NCL,
>
> Do me a favor, how to run some ncl scripst in a shell script: e.g;
>
> ================================
>
> !/bin/bash/
>
> declare -a arr=("fma" "mam" "amj")
>
> for i in "${arr[@]}"
>
> do
>
> echo "$i"
>
> cd ${i}/
>
> *ncl script.ncl*
>
> cd ../
>
> done
>
> ================================
>
> I got errors by doing this, Thank you
>
> cheers,
>
> Erika,
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140807/d150981f/attachment.html
More information about the ncl-talk
mailing list