转储手册页为干净的文本

将手册页转储到文本通常会保留某些格式,例如 foo^H^H^H___ fo,包括下划线和其他特殊字符,col -bx删除了这些
.

0

linux命令:man2txt() { man "$@" | col -bx ;} ;} -bx col | "$@" man { man2txt() man2txt() { man "$@" | col -bx ;}rootopen.com
linux命令:man2txt() { man "$@" | col -bx ;} ;} -bx col | "$@" man { man2txt() man2txt() { man "$@" | col -bx ;}rootopen.com
dmgh 2018-10-17 23:30:39
输出
$ man2txt 1 cat | head    
CAT(1)                           User Commands                          CAT(1)

NAME
       cat - concatenate files and print on the standard output

SYNOPSIS
       cat [OPTION]... [FILE]...

DESCRIPTION
       Concatenate FILE(s) to standard output.

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令