Solved

simple html / website question

Posted on 2002-06-05
5
177 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now