I needed a grep that I could modify slightly, so I grabbed a copy of Vivian De Smedt's grep.py, and renamed it pygrep.py (I have Cygwin's grep on the path).

My additions:

  • If the file argument is "@file.txt", then file.txt will be read for filenames, one per line, and the grep will be performed across those files.
  • The -w flags turns on full-word-only mode.
Download: pygrep.py

Comments

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.