Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

simple html / website question

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

840 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