Solved

simple html / website question

Posted on 2002-06-05
5
182 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
[X]
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
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

695 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