Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: bakedjake
We use the Google University search and I have tried using that - but this is does not seem to be effective for this purpose.
I have tried searching the web for a solution, but no luck.
Thank you to anyone who can help!
[I assume your URL is '/somepath/myurl.html', and your web server root path is '/home/httpdocs']
rgrep -x 'html' -rl '/somepath/myurl.html' /home/httpdocs > yourresultfile.txt
rgrep -x 'htm' -rl '/somepath/myurl.html' /home/httpdocs >> yourresultfile.txt
lazy way.. :)
Of course, you can use 'grep' instead of 'rgrep', omitting the 'x' arg, but in this case you'll have a big CPU-RAM-diskI/O expense, because grep will scan ALL the files in the given directory.
This is another, correct, way, with grep:
find /home/httpdocs -name '*.html' > tmp.txt
find /home/httpdocs -name '*.htm' >> tmp.txt
grep -lr '/somepath/myurl.html' `cat tmp.txt` > yourresultfile.txt
Note that you don't need root privileges for doing this.