Webtools



Webxref is a
Perl program to check links in your web documents. Webxref makes cross references from a html document and the html documents linked from that html document. I.e. the links found in that document are checked for missing links or files, then the links in that document are checked and so on. Webxref is a quick and easy tool to quickly check a local set of html documents.

As of version 0.1.1 a 1-level check of external URLs is done, i.e. it is checked if the http://links encountered exist and work. This can be switched off with the -nohttp option. (*new*) Other new options are -htmlonly, -silent and -avoid, see below.

When ready a list (and direct and indirect references) is printed of:


usage: webxref [-help -nohttp -htmlonly -silent -avoid regexp] file.html
 -nohttp: do not check external URLs
 -htmlonly: only inspect files with the .html suffix
 -silent: only print error messages
 -avoid regexp: avoid files with names matching regexp for inspection

 Examples
   webxref file.html
             checks file.html and files/URLs referenced from file.html
   webxref -nohttp file.html
             checks file.html and references, but not external URLs
   webxref -htmlonly file.html
             checks file.html, but only files with the .html extension
   webxref -avoid '.*Archive.*' file.html
             checks file.html but avoids files with names containing
             'Archive'
   webxref -avoid '.*Archive.*|.*Distribution.*' file.html
             Same as above, but also files with names containing
             'Distribution' are skipped.

Webxref was written as part of the SURFACE project (SURFnet Advanced Communication Environment).
Get webxref (22938 bytes)

Version: 0.1.5
Last change: April 15th 1996 (Minor change: fix of "could not open socket")
Access count:
Feedback is very welcome: mail rick@sara.nl


Other link checkers and validation tools:

Treesed

Treesed, a Perl program, is a search/replace tool for lists of files. It can search for patterns in a list of files, or even a tree of directories with files.

Usage:
treesed pattern1 <pattern2> -files <file1 file2 ...>
treesed pattern1 <pattern2> -tree

Treesed searches for pattern1. If pattern2 is supplied pattern1 is replaced by pattern2. If pattern2 is not supplied treesed just searches. A list of files can be supplied with the -files parameter. Treesed is also capable of search/replace in files in subdirectories if you supply the -tree parameter. All files in the current directory and subdirectories are processed. Always a backup is made of the original file, with a random numeric suffix.

Example:
treesed aap noot -tree
Replaces 'aap' by 'noot' in all files in the current directory and in all files in sub-directories of the current directory (and so on).

treesed aap -files *
Searches the string 'aap' in all files in the current directory.

Get treesed (3639 bytes)


Webxref written 1995 by Rick Jansen (rick@sara.nl) expr: 0402-050 Syntax error.