LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 448|回复: 1

请问gento下怎么把man的内容输入到文本文件中?

[复制链接]
发表于 2009-10-17 18:45:03 | 显示全部楼层 |阅读模式
一般man xxx | col -b  > xxx.txt 可以将mangage输入到文本文件中,但是由于gentoo下man输出的内容是彩色,所以得到的文本文件中有很多m,请问怎么去掉?

  1. gentoo ~ # man touch | col -b
  2. TOUCH(1)                         User Commands                        TOUCH(1)



  3. 1mNAME0m
  4.        touch - change file timestamps

  5. 1mSYNOPSIS0m
  6.        1mtouch 22m[4mOPTION24m]... 4mFILE24m...

  7. 1mDESCRIPTION0m
  8.        Update  the  access  and modification times of each FILE to the current
  9.        time.

  10.        A FILE argument that does not exist is created empty.
复制代码
发表于 2009-10-17 19:33:54 | 显示全部楼层
app-text/man2html
可以不?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表