urlview - URL extractor/launcher
urlview <filename> <filename> ...
urlview is a screen oriented program for extracting URLs from text files and displaying a menu from which you may launch a command to view a specific item.
urlview attempts to read /.urlview upon startup. There are two configuration commands (order does not matter):
REGEXP <regular expression to use for URL matching>
urlview uses a regular expression to extract URLs from the specified text files. r, t, n and f are all converted to their normal printf(2) meanings. The default REGEXP is
((((ht|f)tp)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">]
COMMAND <command to launch with URL>
If the specified command contains a ``s'', it will be subsituted with the URL that was requested, otherwise the URL is appended to the COMMAND string. The default COMMAND is
netscape -remote 'openURL(%s)'
NOTE: you should always put single quotes ('') around usage of
``%percnt;s'' to avoid characters in the selected URL from being interpreted
by your shell. For example, I could put the following URL in my email
messages:
X-Nasty-Url: http://www.`program_to_execute_as_you`.com
If you pass this URL to your shell, it could have nasty consequences.
urlview configuration file
regcomp(3)
Michael Elkins <me@cs.hmc.edu>