Organizing Python Code
François Pinard
pinard at iro.umontreal.ca
Fri Oct 13 22:02:37 EDT 2000
[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:
---------------------------------------------------------------------->
0 pinard at titan:~ $ grep --help | grep recurs
'read' (lecture), 'recurse' (récursivité),
-r, --recursive équivalent à --directories=recurse.
0 pinard at titan:~ $ LANGUAGE= LANG= grep --help | grep recurs
ACTION is 'read', 'recurse', or 'skip'.
-r, --recursive equivalent to --directories=recurse.
0 pinard at titan:~ $ grep --version
grep de GNU 2.3
Copyright (C) 1988, 1992-1998, 1999 Free Software Foundation, Inc.
Ce logiciel est gratuit; voir les sources pour les conditions de
reproduction. AUCUNE garantie n'est donnée; tant pour des raisons
COMMERÇIALES que pour RÉPONDRE À UN BESOIN PARTICULIER.
----------------------------------------------------------------------<
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list