Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 6.2

(Zoot)

urlview(1)


urlview

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>



urlview(1)