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:
-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.
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
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)