|
From: Christian V. B. <chr...@uc...> - 2012-01-20 13:58:26
|
On Tue, 2012-01-10 at 08:08 +0100, res wrote:
> Once you started to actually modify source files you probably want to
> exclude backup files as well; to accomplish that, pass ‘--exclude=*~’ on
> the command line.
I do the file selection by using the 'find' command instead. I also use
the 'H' switch of grep/egrep in order to get the file name along with
the relevant code line:
find . -name "*.cpp" -exec egrep -H "csMin.\(|csMax.\(" "{}" ";" | less
I put that in a small script (in attachment of this mail), and it's even
easier:
_ffind "csMin.\(|csMax.\("
or more explicitely:
_ffind . cpp "csMin.\(|csMax.\("
|