环境说明:


      有很多失败报告的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

相关文章:

  • 2021-06-26
  • 2021-12-18
  • 2021-12-31
  • 2021-06-02
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
  • 2023-02-22
猜你喜欢
  • 2021-08-11
  • 2021-10-19
  • 2022-12-23
  • 2022-01-07
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案