摘要:
linux: python执行shell脚本常用的方法 import os val=os.system("shell语句") >>> val=os.system("more /tmp/web.access.log |grep 222.132.79.77 -wc")826>>> print val0 阅读全文
posted @ 2015-10-20 13:41
米 立
阅读(1093)
评论(0)
推荐(0)
摘要:
一般的log文件都是需要过滤 1.grep 过滤查找 查询ip 221.2.100.138的log grep '221.2.100.138' web.access.log grep 221.2.100.138 web.access.log less web.access.log |grep "221 阅读全文
posted @ 2015-10-20 09:40
米 立
阅读(3033)
评论(0)
推荐(0)

浙公网安备 33010602011771号