Very handy might need to $1 it + save that command.  Thanks Mark.

Combine that with a little sed and you would be able to do your full find + replace in a single line.

- Jon

On Jul 26, 2007, at 2:08 PM, Mark Armendariz wrote:

Jon Baer wrote:
Just fgrep for the filename ...

fgrep -Rn "file.php" /path/to/docroot

- Jon

Jon's would return more references (including comment references and such)
Could also do this - specific to php includes

find -name '*.php' | xargs grep -E "(include|require)(_once)? 'file.php'"


Mark
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to