[ncl-talk] how to get different file name in mv command?

杨玉华 yangyh at mail.typhoon.gov.cn
Mon Dec 15 02:32:41 MST 2014


Hi,
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?
 do it=0,72,6
  filename= "fx" + it + ".dat"
    print("filename=" + filename)
  system("mv fengxian.dat  'filename'") or system("mv fengxian.dat  '$filename'")
   end do     ; END OF times
Thanks in advance!
Yuhua

=====================
名称: 中国气象局上海台风研究所
地址: 中国上海市徐汇区蒲西路166号
电话:(+86)021-64391966
传真:(+86)021-64391966
============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141215/44f38a05/attachment.html 


More information about the ncl-talk mailing list