You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
780 B

5 years ago
# col
7 years ago
6 years ago
## 说明
7 years ago
5 years ago
**col命令** 是一个标准输入文本过滤器它从标注输入设备读取文本内容并把内容显示到标注输出设备。在许多UNIX说明文件里都有RLF控制字符。
当我们运用shell特殊字符`>`和`>>`把说明文件的内容输出成纯文本文件时控制字符会变成乱码col命令则能有效滤除这些控制字符
7 years ago
5 years ago
## 选项
7 years ago
5 years ago
```markdown
-b, --no-backspaces 不显示空格包括RLF和HRLF
-f, --fine 滤掉RLF字符但允许将HRLF字符呈现出来
-p, --pass pass unknown control sequences
-h, --tabs convert spaces to tabs
-x, --spaces convert tabs to spaces
-l, --lines NUM buffer at least NUM lines,预设的内存缓冲区有128列
7 years ago
```