5
w3m常用操作
source link: https://www.lujun9972.win/blog/2016/12/11/w3m%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
w3m命令行参数说明
w3m的命令行格式是这样的:
w3m [options] [file|URL]
若启动时指定了file或者URL,则w3m启动时立即打开指定的file或URL
若启动时没有指定file或URL,则stdin被重定向的情况下,w3m会显示重定向源中的内容(不做render). 否则,w3m会在stderr输出帮助信息后退出.
w3m <<EOF <h>hello</h> EOF
<h>hello</h>
w3m本身也支持大量的参数,比较常用的几个参数有:
+<line number>启动后,跳转到指定行 -t width指定tab的宽度,默认为8 -T type
指定读取文档的类型(content-type). 例如以下命令会显示渲染后的结果
w3m -T text/html <<EOF <h>hello</h> EOF
hello
~/.w3m/config
-o option=value指定option的值,option的名词与值应该是w3m配置文件中的合法值
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK