Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (14 sloc) 0.442 kb
#!/usr/bin/env python3.1
import sys
import time
def main():
fread = open(sys.argv[1])
fwrite = open(sys.argv[2], "w")
word_filter = sys.argv[3]
fwrite.write("Generate Time {0}\n".format(time.ctime()))
for line in fread.readlines():
if (word_filter in line) or (("START" or "END") in line):
fwrite.write(line)
fread.close()
fwrite.close()
main()
Jump to Line
Something went wrong with that request. Please try again.