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
"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
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