Artifact 58a2dc414ff1c5824d23dc29da4babf6cc39b09a:
- File tests/langbench/grep.py — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 174) [annotate] [blame] [check-ins using]
import os import sys import re p = re.compile('[^A-Za-z]fopen\(.*\)') for a in sys.argv: f = open(a) for line in f: m = p.search(line) if m: print line, f.close()