[Tutor] python grep implementation

2016-10-13 Thread anish singh
I am trying to implement grep functionality in python. import os, sys, getopt import multiprocessing as mp import re import itertools def get_files(path, pattern): for (dirpath, dirnames, filenames) in os.walk(path): for filename in filenames: if filename.endswith(pattern): yi

Re: [Tutor] Python grep

2009-01-28 Thread Alan Gauld
"Kent Johnson" wrote Since there have been a couple of threads about searching recently, I thought this might be of interest: http://www.redmountainsw.com/wordpress/archives/python-grep I'll throw in PowerGrep which is a grep like tool that knows about multiple file formats such as MS Offic

[Tutor] Python grep

2009-01-28 Thread Kent Johnson
Since there have been a couple of threads about searching recently, I thought this might be of interest: http://www.redmountainsw.com/wordpress/archives/python-grep Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tuto