# grepmodoki.py import sys key = sys.argv[1] f = open(sys.argv[2], "r") for s in f: if s.find(key) != -1: print s,