<!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&nbsp;I just get&nbsp;the same&nbsp;file named such as filename.dat or&nbsp;$filename.dat,&nbsp;&nbsp;what should I need do?</P>
<P>&nbsp;do it=0,72,6</P>
<P>&nbsp;&nbsp;filename= "fx" + it + ".dat"<BR>&nbsp;&nbsp;&nbsp; print("filename=" + filename)<BR>&nbsp; system("mv fengxian.dat&nbsp; 'filename'") or system("mv fengxian.dat&nbsp; '$filename'")<BR>&nbsp;&nbsp; end do&nbsp;&nbsp;&nbsp;&nbsp; ; 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>