Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __author__ = 'shix'
- import re
- def check_log():
- f = open('sm.log','r')
- num = 1
- for line in f:
- if re.match("(.*)(E|e)xpected(.*)",line):
- print line
- print num
- num = num+1
- check_log()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement