Python处理失败报告脚本

环境说明:

      有很多失败报告的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的相应路径下。

《Python处理失败报告脚本》

    原文作者:死里逃生
    原文地址: https://blog.51cto.com/lubing/1217462
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞