View Single Post
Old 2004-07-10, 09:09 PM   #5
airdick
Shut up brain, or I'll stab you with a Q-tip!
 
Join Date: Aug 2003
Posts: 114
Here is a quick-and-ugly one-liner for bash:

host=www.yourdomain.com;for var in `find . -type f -name index.html| cut -c 3-`;do echo \<a\ href=\"http://$host/$var\"\>$host/$var\<\/a\>\<br\> >> /tmp/$host-indexpages.html;done

You would have to run this from the root of each domain, so it's definately not a run-once solution, but it will get the job the done.
airdick is offline   Reply With Quote