DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Create An Index Of A Tree Of Html Files For Local Viewing.
find . -name "*.html" -exec echo "<a href=\"{}\">{}</a><br/>" \; > index_list
mv index_list index_list.html
# open index_list.html





Comments
Snippets Manager replied on Mon, 2009/02/16 - 10:48pm
" \; > list_$2.html Now you can enter 2 variables to make a custom page for each file type. eg: [~]# list_tree 2 pdf This will create the file 'list_pdf.html' of only the pdf files in the current directory and one directory underneath.