• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

simple html / website question

Say I have a site with default protected directories.
Therefore a user cannot browse the contents of the directories unless an indexed html file is made pointing to each of the files in the directory and subdirectories. Obviously we dont want to do this by hand creating links one-by one in an html file The question is: How do I generate an htm file fast containing a browsable index of all files in all subdirectories.
0
dryzone
Asked:
dryzone
  • 3
  • 2
1 Solution
 
ahoffmannCommented:
ls -R |awk '{print "<A HREF="$1">"$1"</A>"}'
0
 
dryzoneAuthor Commented:
Looks like sanscrit read backwards but i'll try.
Jeez...Where do you get these "ideas"
Guess i 'll have to buy SE/AWK from O'Reily afterall
0
 
dryzoneAuthor Commented:
Amazing!
It works like a dream.
Hat's off! and I gave you 10 extra points.
0
 
dryzoneAuthor Commented:
ahoffmann is king (or is it queen) as usual.
0
 
ahoffmannCommented:
not a royal at all, but adicted to UNIX tooooo long ... :-)
Thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now