<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<style type="text/css">
<!--
        #send_mail {
        font-family: "Courier New";
        background:#FFFFFF;
        color:#000000;
        }
#send_mail a {
        color:#999999
        }
#send_mail a:hover {
        color:#0000FF
        }
#send_mail div {
        color:#000000;
        font-family: "Courier New";
        font-size:14px;
        line-height:150%;
        }
#send_mail .usersign {
        line-height:100%;
        }
-->
</style>
<body id="send_mail">
<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>
电话:(+86)021-64391966
<BR>
传真:(+86)021-64391966
<BR>
============================
</body>
</html>