hawk

导航

2013年1月3日 #

Python 实现在对一个目录下所有文件,指定某一行之后添加内容(批处理脚本)

摘要: 1 #folder for output 2 outDir = "D:\\ddd" 3 #After which line start to add new sentence 4 startAdd = 'Telnet WatchFor Fail "ERROR"' 5 #The keyword checked sentence we wanna add 6 ItemAdd = ['Telnet WatchFor Fail "Error"','Telnet WatchFor Fail "e 阅读全文

posted @ 2013-01-03 15:48 hawkgogo 阅读(619) 评论(0) 推荐(0) 编辑