Markus Hiereth
2014-11-29 16:59:58 +09:00
committed by Tatsuya Kinoshita
parent bfb03b0ff1
commit 61cf1445be

View File

@@ -178,19 +178,60 @@ write request logfile
.B -debug .B -debug
DO NOT USE DO NOT USE
.SH EXAMPLES .SH EXAMPLES
.SS Pager-like usage
.TP .TP
To use w3m as a pager: Combine snippets of HTML code and preview the page
.br .EX
$ ls | w3m $ cat header.html footer.html | w3m -T text/html
.br .EE
.TP .TP
To use w3m to translate HTML files: Compare two files using tabs
.br .EX
$ cat foo.html | w3m -T text/html $ w3m -N config.old config
.EE
.SS Browser-like usage
.TP .TP
or Display web content in monochrome terminal
.br .EX
$ cat foo.html | w3m -dump -T text/html >foo.txt $ w3m -M http://w3m.sourceforge.net
.EE
.TP
Display embedded graphics
.EX
$ w3m -o auto_image=TRUE http://w3m.sourceforge.net
.EE
.TP
Display content from Usenet
.EX
$ w3m -m nntp://news.aioe.org/comp.os.linux.networking
.EE
.TP
Upload data for a URL using the POST method
.EX
$ w3m -post - http://example.com/form.php <<<'a=0&b=1'
.EE
.SS Filter-like usage
.TP
Convert an HTML file to plain text with a defined line length
.EX
$ w3m -cols 40 foo.html > foo.txt
.EE
.TP
Output the bookmarks page as text with an appended list of links
.EX
$ w3m -B -o display_link_number=1 > out.txt
.EE
.TP
Conversion of file format and character encoding
.EX
$ w3m -T text/html -I EUC-JP -O UTF-8 < foo.html > foo.txt
.EE
.SS Start with no input
.TP
Welcome users with a built-in page
.EX
$ w3m -v
.EE
.SH FILES .SH FILES
.TP .TP
.I ${HOME}/.w3m/config .I ${HOME}/.w3m/config