+ -
当前位置:首页 → 问答吧 → 请问gento下怎么把man的内容输入到文本文件中?

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

时间:2009-10-17

来源:互联网

一般man xxx | col -b > xxx.txt 可以将mangage输入到文本文件中,但是由于gentoo下man输出的内容是彩色,所以得到的文本文件中有很多m,请问怎么去掉?

代码:
gentoo ~ # man touch | col -b
TOUCH(1) User Commands TOUCH(1)



1mNAME0m
 touch - change file timestamps

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

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

 A FILE argument that does not exist is created empty.

作者: slurker   发布时间: 2009-10-17

app-text/man2html
可以不?

作者: justinhuang   发布时间: 2009-10-17

热门下载

更多