[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

simple html / website question

Posted on 2002-06-05
5
Medium Priority
?
185 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 440 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

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
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…
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…
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

873 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