Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 19 lines (14 sloc) 0.353 kB
a623033 init
Robert authored
1 import os
2 import time
3 import re
4 import settings
5
6 RECSMATCH=0
7 #RECSREAD=0
8
9 pattern = re.compile(settings.TARGET_USERNAME)
10
11 with open(settings.BIG_FILE, "r") as fh_in:
12 for line in fh_in:
13 #RECSREAD += 1
14 if pattern.search(line):
15 RECSMATCH += 1
16
17 #print(RECSREAD,RECSMATCH)
18 print(RECSMATCH)
Something went wrong with that request. Please try again.