Fog Creek Software
g
Discussion Board




Web File Dependencies

Wondering if anybody know of a good tool to check dependencies throguh a web project.  It would be nice to have something where you give it a list of files and it searches throguh the project directories to find any references to the files.  This would help in eliminating errors due to not knowing a particular file was called from another file.  In essence it's just a robust search tool with multiple search phrases. Any ideas?

ME
Thursday, March 18, 2004

Not sure I get exactly what you are looking for, but Dreamweaver has a pretty good search/replace function.

Eric Debois
Thursday, March 18, 2004

You can try "Living Doc" from:
http://www.livingaddress.com/livdoc/eng/
It's intended to document your ASP, or .NET or other application and also show the relationships between all the files, and the includes, and method calls, etc.

I tried a version of this a few years ago, and it didn't quite do everything that I wanted at the time, but they have made a lot of changes since then. (I did provide feedback to the company at the time and they were very receptive to my comments.)

Philip Dickerson
Thursday, March 18, 2004

find . -type f -name "*.htm" -print | xargs egrep -i key /dev/null

egrep is your friend.

I know it's a little stone age but there's still a lot to be said for the UNIX command line.

Lou Vanek
Thursday, March 18, 2004

Oh, if all you're looking for is any file that has any mention of a file from a list of files, you can also do this from a command prompt in Windows (NT, 2000, or XP) using the FINDSTR command:
FINDSTR /S /I /L /G:file-with-list-of-filenames-to-search-for DRIVE:\path
Type FINDSTR /? at a command prompt for an explanation of all the command arguments.

Philip Dickerson
Friday, March 19, 2004

*  Recent Topics

*  Fog Creek Home