<div dir="ltr"><div><div><div><div>Dear all,<br></div>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.<br><br></div>Part of my bash script is as below.<br></div>Looking inside each folder (A to Z) and running xx2.ncl is the one where I got stuck.<br></div><br><div><div><div><div><br><br>.................<br><div>..............<br>while [  -s fish1 ]; do                 #lopp over all files<br>.....................<br>....................<br>FILENAME=`echo &quot;$line&quot; | awk -F - &#39;{ print $1}&#39;`<br>echo &quot;Reading file $FILENAME&quot;<br> alias dnm= &quot;cd $FILENAME&quot;<br> echo &quot;$dnm&quot;<br> #ncl xx2.ncl<br> unalias dnm<br>done<br><br></div><div>Any help in this issue will be appreciated.<br><br></div><div>Regards,<br></div><div>Ipsita<br></div></div></div></div></div></div>