man more > ./more的问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

man more > ./more的问题

#1

帖子 543082593 » 2009-05-19 22:28

如题的命令
我以前用它把man出来的东西 重定向到一个文本 以便阅读 但是 今天 不知道怎么搞的 这样 得到的文本
打不开 总显示 “无法显示” 在终端 vim的时候 里面也有不分是"?"显示的
谁知道 是怎么搞的 郁闷了
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: man more > ./more的问题

#2

帖子 543082593 » 2009-05-19 22:31

543082593 写了:如题的命令
我以前用它把man出来的东西 重定向到一个文本 以便阅读 但是 今天 不知道怎么搞的 这样 得到的文本
打不开 总显示 “无法显示” 在终端 vim的时候 里面也有不分是"?"显示的
谁知道 是怎么搞的 郁闷了
哦 发现了 如果 man出来的全是英语的话 就没有问题
是中文的话就有问题了
可能是编码的问题吧
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: man more > ./more的问题

#3

帖子 543082593 » 2009-05-31 12:03

可是 如果 我想把中文的man手册 重定向 怎么做呢
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: man more > ./more的问题

#4

帖子 cnkilior » 2009-05-31 13:19

复制粘帖吧。
手册页里面有控制字符的。
aerofox
帖子: 1453
注册时间: 2008-05-24 8:30

Re: man more > ./more的问题

#5

帖子 aerofox » 2009-05-31 16:06

可以用 iconv 改一下编码。
其实如果想 man 的结果存成文件,不如用 man2html 转为网页格式,看着舒服。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: man more > ./more的问题

#6

帖子 eexpress » 2009-05-31 16:08

转文本干嘛。至少man可搜索,还是彩色的。好看多了。忘记名字,还可补全。
● 鸣学
头像
c\nc
帖子: 231
注册时间: 2007-12-25 12:51

Re: man more > ./more的问题

#7

帖子 c\nc » 2009-05-31 19:54

man more | col -b > more.txt ??
回复