<div dir="ltr"><div><div><div>Hi,<br><br></div>Just like in your print statement, in the system statement, write:<br><br></div> system("mv fengxian " + filename)<br><br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 2:32 AM, 杨玉华 <span dir="ltr"><<a href="mailto:yangyh@mail.typhoon.gov.cn" target="_blank">yangyh@mail.typhoon.gov.cn</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div><p>Hi,</p>
<p>I'd want to get different file name such (as fx0.dat, fx12.dat) for the following mv command, but I just get the same file named such as filename.dat or $filename.dat, what should I need do?</p>
<p> do it=0,72,6</p>
<p> filename= "fx" + it + ".dat"<br> print("filename=" + filename)<br> system("mv fengxian.dat 'filename'") or system("mv fengxian.dat '$filename'")<br> end do ; END OF times</p>
<p>Thanks in advance!</p>
<p>Yuhua</p></div>
<br>
=====================
<br>
名称: 中国气象局上海台风研究所
<br>
地址: 中国上海市徐汇区蒲西路166号
<br>
电话:<a href="tel:%EF%BC%88%EF%BC%8B86%EF%BC%89021-64391966" value="+862164391966" target="_blank">(+86)021-64391966</a>
<br>
传真:<a href="tel:%EF%BC%88%EF%BC%8B86%EF%BC%89021-64391966" value="+862164391966" target="_blank">(+86)021-64391966</a>
<br>
============================
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div></div>