Michael Jinks wrote:
[snip]
> find /path/to/cgi-bin -type f -exec grep '10.0.0.1' {} \;
If I were doing it this way I would use:
find /path/to/cgi-bin -type f -exec grep -H '10.0.0.1' {} \;
or
find /path/to/cgi-bin -type f -exec grep '10.0.0.1' {} \; -print
so you know which files the matches are found in.
Or you can use
cd /path/to/cgi-bin
rgrep -r '10.0.0.1' *
rgrep is in the grep package (in potato, at least).
Regards
Tom