Organizing Python Code

Randall Hopper aa8vb at yahoo.com
Tue Oct 17 08:01:49 EDT 2000


François Pinard:
 |[Bill Anderson]
 |
 |> rgrep is a recursive grep.
 |> (RedHat has it on their cd(s), dunno where else to get it)
 |
 |> rgrep -l "def foo" *
 |
 |> Or you can make a shell macro that combines find, xargs, and grep.
 |
 |Just use a recent `grep'.  Let me see:
 |  -r, --recursive           équivalent à --directories=recurse.

I just use xargs since it's supported everywhere.

   ff '*.c' | xargs grep 'mystring'

where ff is a 'find file script':

   find . -name "$1" -type f -print

-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list