Chinaunix首页 | 论坛 | 博客
  • 博客访问: 31979
  • 博文数量: 11
  • 博客积分: 271
  • 博客等级: 二等列兵
  • 技术积分: 135
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-16 05:48
文章分类

全部博文(11)

文章存档

2012年(11)

我的朋友

分类: Python/Ruby

2012-07-24 15:37:27

#!/bin/bash


IP=10.10.18.8
USER=mcpp30
PASSWD=umcpp30


myftp(){
ftp -n $IP <
quote USER $USER
quote PASS $PASSWD
cd ./nm
bin
put $1 $2
rename $2 $1
quit
END_SCRIPT
echo "ftp" $1 $2>> ftp.log
}


file_list=`find . -name "*.CDR" -type f |sort`
for file in $file_list
do
if [ "${file##*.}" = "CDR" ]
then
tmp_file=${file/%"CDR"/"tmp"}
myftp $file $tmp_file
mv $file ../boss
fi
done
exit 0
阅读(827) | 评论(0) | 转发(3) |
0

上一篇:内存管理

下一篇:数据结构-KMP算法

给主人留下些什么吧!~~