[ncl-talk] problem with running ncl script within bash

Ipsita Putatunda ipsita.putatunda at gmail.com
Mon Jan 23 10:38:31 MST 2017


Dear all,
I am running a bash script inside a directory (xx). Inside the xx directory
there are other folders say A to Z containing some files, where xx2.ncl is
one of them. Iwant to run xx2.ncl script for each A to Z folder.

Part of my bash script is as below.
Looking inside each folder (A to Z) and running xx2.ncl is the one where I
got stuck.



.................
..............
while [  -s fish1 ]; do                 #lopp over all files
.....................
....................
FILENAME=`echo "$line" | awk -F - '{ print $1}'`
echo "Reading file $FILENAME"
 alias dnm= "cd $FILENAME"
 echo "$dnm"
 #ncl xx2.ncl
 unalias dnm
done

Any help in this issue will be appreciated.

Regards,
Ipsita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170123/0cd9ce77/attachment.html 


More information about the ncl-talk mailing list