← 返回命令列表

Linux command

urlview 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Extract URLs from a file

urlview [path/to/file]

Extract URLs from multiple files

urlview [file1] [file2] [file3]

Extract URLs from stdin

cat [path/to/email.txt] | urlview

Read from stdin

command | urlview -

Jump to a specific line number

urlview -[5] [path/to/file]

说明

urlview is a screen-oriented utility that extracts URLs from text files and displays an interactive menu for launching them in a browser. It scans input using a regular expression to identify URLs and presents a navigable list. The tool is commonly used with terminal email clients like mutt, allowing users to quickly access links embedded in messages. When a URL is selected from the menu, urlview launches the configured browser or URL handler. Configuration is read from ~/.urlview or /etc/urlview/system.urlview. The configuration file supports the following directives: REGEXP (custom URL matching pattern), COMMAND (URL launch command with %s placeholder), WRAP (yes/no for long URL wrapping), QUITONLAUNCH (exit after launching a URL). The default handler is url_handler.sh, but the BROWSER environment variable can override this with a browser command or colon-delimited list of browsers to try.

参数

-_number_
Jump to the specified line number in the URL list.

FAQ

What is the urlview command used for?

urlview is a screen-oriented utility that extracts URLs from text files and displays an interactive menu for launching them in a browser. It scans input using a regular expression to identify URLs and presents a navigable list. The tool is commonly used with terminal email clients like mutt, allowing users to quickly access links embedded in messages. When a URL is selected from the menu, urlview launches the configured browser or URL handler. Configuration is read from ~/.urlview or /etc/urlview/system.urlview. The configuration file supports the following directives: REGEXP (custom URL matching pattern), COMMAND (URL launch command with %s placeholder), WRAP (yes/no for long URL wrapping), QUITONLAUNCH (exit after launching a URL). The default handler is url_handler.sh, but the BROWSER environment variable can override this with a browser command or colon-delimited list of browsers to try.

How do I run a basic urlview example?

Run `urlview [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -_number_ do in urlview?

Jump to the specified line number in the URL list.