Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

content / index builder

Thread Tools
 
Search this Thread
 
Old 09 February 2005, 11:06 AM
  #1  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Default content / index builder

Basically we have hundreds of folders with html content.

What I need is a program that scans all these folders for html files and indexes them into a html file and creates links to them.

Anyone know of any that exist ?
Old 09 February 2005, 11:47 AM
  #2  
Wurzel
Scooby Senior
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Cool

Originally Posted by ChristianR
Basically we have hundreds of folders with html content.

What I need is a program that scans all these folders for html files and indexes them into a html file and creates links to them.

Anyone know of any that exist ?
Are you any good at unix shell scripting? only I have a shell script that does similar to what you want but would need doctoring to get the exact results you want.

Let me know if you want it to play with.

Steve
Old 09 February 2005, 11:56 AM
  #3  
Wurzel
Scooby Senior
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Cool

on second thoughts it migth not be what you want, I wrote it to scan through a whole directory of tar files and output the contents to a webpage.

Basically it it lists all the tar files and prints the file name as a link that when you click on it it displays the contents of the zip file, you might be able to doctor it for your needs though if you have time to play.
Old 09 February 2005, 12:02 PM
  #4  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Default

sort of sounds what i am after, however no unix servers here
Old 09 February 2005, 12:11 PM
  #5  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

If you have activestate installed this will do most of what you want:

perl -MFile::Find -e 'find(\&wanted, "top level dir"); sub wanted { /\.html?$/ && print "<a href=\"" . $File::Find::name . "\">" . $File::Find::name . "</a>\n"; }'

Forgot, redirect the output somewhere
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Abx
Subaru
22
09 January 2016 05:42 PM



Quick Reply: content / index builder



All times are GMT +1. The time now is 07:46 AM.