Solved

simple html / website question

Posted on 2002-06-05
5
181 Views
Last Modified: 2010-04-20
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
Comment
Question by:dryzone
  • 3
  • 2
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 110 total points
ID: 7056694
ls -R |awk '{print "<A HREF="$1">"$1"</A>"}'
0
 
LVL 1

Author Comment

by:dryzone
ID: 7057177
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
 
LVL 1

Author Comment

by:dryzone
ID: 7057186
Amazing!
It works like a dream.
Hat's off! and I gave you 10 extra points.
0
 
LVL 1

Author Comment

by:dryzone
ID: 7057194
ahoffmann is king (or is it queen) as usual.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7057619
not a royal at all, but adicted to UNIX tooooo long ... :-)
Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question