[root@192 weijie]# man clear > 3.c //将手册从定向到文件 [root@192 weijie]# vim 3.c //编辑文件,内部有很多乱码,这些都是控制字符 clear(1) clear(1) N^HNA^HAM^HME^HE c^Hcl^Hle^Hea^Har^Hr - clear the terminal screen S^HSY^HYN^HNO^HOP^HPS^HSI^HIS^HS c^Hcl^Hle^Hea^Har^Hr D^HDE^HES^HSC^HCR^HRI^HIP^HPT^HTI^HIO^HON^HN c^Hcl^Hle^Hea^Har^Hr clears your screen if this is possible. It looks in the environ- ment for the terminal type and then in the t^Hte^Her^Hrm^Hmi^Hin^Hnf^Hfo^Ho database to figure out how to clear the screen. [root@192 weijie]# man clear | col -b > 3.c //将手册内容过滤之后,定向到文件 [root@192 weijie]# vim 3.c //编辑文件内容,没有乱码 clear(1) clear(1) NAME clear - clear the terminal screen SYNOPSIS clear DESCRIPTION clear clears your screen if this is possible. It looks in the environ- ment for the terminal type and then in the terminfo database to figure out how to clear the screen.
|