您的位置:首页 > 编程语言 > Python开发

Python处理失败报告脚本

2013-06-06 18:38 204 查看
环境说明:

有很多失败报告的xml文件名存放在/root/python/xml.txt
现在要把xml.txt里面的xml 文件处理掉:如:d3f321bc-1cf5-4447-927b-a6bfa0383c85-gjeuw7jxmzh3-Assessment-101069-campusrecruitcompletereport.xml
1 xml文件里有一个路径 如:<Path>/root/Report/ReportThroughputDisk/Queueing/Assessment/Highest/101069/d3f321bc-1cf5-4447-927b-a6bfa0383c85-gjeuw7jxmzh3-Assessment-101069-campusrecruitcompletereport.xml</Path>

2 需要把文件101069/d3f321bc-1cf5-4447-927b-a6bfa0383c85-gjeuw7jxmzh3-Assessment-101069-campusrecruitcompletereport.xml 挪到/root/Report/ReportThroughputDisk/Queueing/Assessment/Highest/101069 这个路径下

3 xml.txt里面的xml 都放在 /root/python/reportxml目录下

执行玩脚本后,xml.txt里面的xml文件都会挪到本身文件Path的相应路径下。



本文出自 “决胜千里之外” 博客,请务必保留此出处http://lubing.blog.51cto.com/5293532/1217462
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: