Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (14 sloc) 0.353 kB
import os
import time
import re
import settings
RECSMATCH=0
#RECSREAD=0
pattern = re.compile(settings.TARGET_USERNAME)
with open(settings.BIG_FILE, "r") as fh_in:
for line in fh_in:
#RECSREAD += 1
if pattern.search(line):
RECSMATCH += 1
#print(RECSREAD,RECSMATCH)
print(RECSMATCH)
Jump to Line
Something went wrong with that request. Please try again.