Developer's Daily Unix by Example
  main | java | perl | unix | dev directory | web log
 
 
Main
Unix
Man Pages
   

urlview

NAME
SYNOPSIS
DESCRIPTION
CONFIGURATION
FILES
SEE ALSO
AUTHOR

NAME

urlview - URL extractor/launcher

SYNOPSIS

urlview <filename> [ <filename> ... ]

DESCRIPTION

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.

CONFIGURATION

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):(//)?[^ >"]*|www.[-a-z0-9.]+)[^ .,;>">]

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.

FILES

~/.urlview

urlview configuration file

SEE ALSO

regcomp(3)

AUTHOR

Michael Elkins <me@cs.hmc.edu>


copyright 1998-2007, devdaily.com, all rights reserved.
devdaily.com, an alvin j. alexander production.