September 2000
|
|
In order to use it an account on panther.uwo.ca is required but the list that is produced can be used on any web server.
alpha-list makes an alphabetical index form a list of site-names and url's. The format of the command is:
alpha-list [-t template] [-s sepchar] [-noalp]
[-name #] [-url #] [-click col#]
[-other #,#,...] [inputfile [outputfile] ]
alpha-list takes as standard input a file with a list of site names and
url's. The site names and url's are separated by sepchar
which by default is a semicolon (;). By default, the first field is the site
name, the second the url--this can be changed with the appropriate
options, described below. Any other fields can be included with the
-other option, described below. If there is no url on a
line, but there is a site name, then the site will be printed as plain
text rather than as a link.
The list is alphabetized (see below) and then inserted into the file template, by default index-template.html. The index is inserted in the position where the template file contains a line beginning with the characters:
###This gives you the option of adding a header and a footer to the index.
The index itself can consist of several fields (see -other). You can specify headings for these fields in the marker line. For example:
###;who;where;whywould give the first field of the index the heading who, and so on. The separator character, ; in the example, is the same as the separator character you use to separate the fields in the input file.
Default input is from standard input, default output to standard output.
If the last argument on the command line is a file name, that file will
be taken as input. If the last two arguments are file names, the first
of the two is the input file, the second the output file. If an output
file is specified, its permissions will be set to rw-r--r--.
Alphabetization
The site name field is alphabetized as follows:
Faculty of Science;/sci/ Chemistry;/chem/ Astronomy;http://phobos.astro.uwo.ca/ Computer Science;http://www.csd.uwo.ca/ Plant Sciences;/plantsci/ Applied Mathematics;http://pineapple.apmaths.uwo.ca/ Earth Sciences;/earth/es4.html Statistical & Actuarial Sciences;http://fisher.stats.uwo.ca/ Zoology;/zoo/ Physics;http://www.physics.uwo.ca/Note that if the url is on the same server as the resulting index, only a short url is needed, for example /chem/ for Chemistry. Astronomy however runs its own server, hence a full url http://phobos.astro.uwo.ca/ is needed.
(HTML that will appear before the list) ### (HTML that will appear after the list)
alpha-list -t X_template.html X.list X.html
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
A Applied Mathematics Astronomy C Chemistry Computer Science E Earth Sciences F Faculty of Science P Physics Plant Sciences S Science, Faculty of Statistical & Actuarial Sciences Z Zoology
This list was created on Tue May 6 11:45:07 1997
alpha-list -exhaustive -t X_template.html X.list X.htmlThe output would have been as follows:
Index of Faculty of Science A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
A actuarial Statistical & Actuarial Sciences applied Applied Mathematics astronomy Astronomy C chemistry Chemistry computer Computer Science E earth Earth Sciences F faculty Faculty of Science M mathematics Applied Mathematics P physics Physics plant Plant Sciences S science Computer Science " Faculty of Science science, Science, Faculty of sciences Earth Sciences " Plant Sciences " Statistical & Actuarial Sciences statistical Statistical & Actuarial Sciences Z zoology Zoology
This list was created on Tue May 6 12:30:40 1997
©1997, The University of Western Ontario. Permission is granted to copy in whole or in part provided that due credit is given to the authors, the Division of Information Technology Services, and The University of Western Ontario.