• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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