|
一般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.
复制代码 |
|