Written & mounted by Chris Evans, C.Evans@sghms.ac.uk. 16.vi.96

I have written a number of utilities to help me manage this site. Virtually all are written in very crude Perl. They should be compatible with versions 4 and 5 as I don't do anything dependent on version 5 as far as I know although the Irix version of 5 is the one that I run by default.

filesize.prl {9kb}
inserts file sizes into HREFs so people can see what they would be invoking
robots.prl {6kb}
generates a "robot excluding" file: robot.txt {29kb} following the robot exclusion protocol (see reference document )
words.prl {9kb}
generates a page of the letters of the alphabet, each points to a page containing pointers to all the pages in the site containing text words starting with that letter. Also generates a file showing word frequencies.
keywords.prl {12kb}
does the same as words.prl {9kb} described above but only for keywords and key phrases in the <HEAD> portion of pages.
allfiles.prl {3kb}
will find all the files in or below a given subdirectory having a form of filename (Unix globbing convention used) and will make a backup of that file (by renaming it, suffixing .bak to the filename, non-Unix systems beware) the run through it finding any lines containing text specified, this will then be replaced by a specified replacement text
headchge.prl {3kb}
just like allfiles.prl {3kb} above except that it will only change things before finding "<HEAD>" or "<head>", i.e. useful when you only want to change something in the <HEAD> portion of an HTML file.
defiles.prl {<1k}
will find and delete any files with a particular form of name (Unix globbing again) in or below the start directory (useful for tidying up after filesize.prl {9kb} and after defiles.prl {<1k}
ptrs.prl {15kb}
takes a Netscape bookmark.htm file and breaks it up into separate files for each header portion, creating an index file in HTM to the other files as it goes. The result isn't pretty but perhaps it's useful!
cr_dir.prl {15kb}
creates three HTM files containing a directory listing of all the *.htm* files off a certain root directory, and a listing of the non *.htm* files. Files are ordered by:
(1) directory (search root first then subdirectories in alphabetical order)
(2) time last modified (most recent first)
(3) size (largest first)
href.prl {14kb}
program finds all *.htm files off a certain root directory, and checks all their <A HREF=" calls for basic syntax error and for the existence of the target file if its local
site-ind.pl2 {9kb}
my adaptation of the above (can't remember what I had to change to get it working as I needed it here but I can remember I had to change something!)
touchbac.prl {3kb}
touches files with their previous time and date stamps stored in a file by the companion program getdates.prl; useful for resetting time and date stamps after minor tinkering with files
getdates.prl {5kb}
puts the current time and date stamps of files into a file for use by companion program touchback.prl to reset time and date stamps on files after minor tinkering
find1.prl {3kb}
finds text in files of a certain filename (Unix glob) in a specified directory or any subdirectory below that; search can be sensitive or not and there are four levels of verbosity of output