As I said I have been pretty bored lately so i wrote a new script, tclGrep. Actually it is a replacement for the script, perl_grep, which I wrote many years ago and should now be in your contrib directory.
tclGrep will do all that perl_grep does and much more. Run tclGrep -h to see usage. Also read the script comments.
It should work as well on Unix. Just remove the .htc suffix and make sure it is executable. You may have to remove carriage returns from the script like:
perl -pi -e "s/r//g" tclGrep
I would put it in the contrib directory whether Windows or Unix.
I hope you find it usefull. Let me know how many bugs you find