Skip to content

Commit 108f4f6

Browse files
zhb4Managor
andauthored
col: add page (#19237)
Co-authored-by: zhuhongboAAA <[email protected]> Co-authored-by: Managor <[email protected]>
1 parent e8261af commit 108f4f6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pages/linux/col.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# col
2+
3+
> Filter reverse line feeds from input.
4+
> More information: <https://manned.org/col>.
5+
6+
- Filter reverse line feeds from input:
7+
8+
`{{command}} | col`
9+
10+
- Filter reverse line feeds and output with spaces instead of tabs:
11+
12+
`{{command}} | col {{[-x|--spaces]}}`
13+
14+
- Remove backspaces, output only the last character written to each position:
15+
16+
`{{command}} | col {{[-b|--no-backspaces]}}`
17+
18+
- Specify a buffer size with a specific number of lines:
19+
20+
`{{command}} | col {{[-l|--lines]}} {{num}}`
21+
22+
- Format a manual page for viewing with `less`:
23+
24+
`man ls | col {{[-b|--no-backspaces]}} | less`
25+
26+
- Process a file with reverse line feeds and save the cleaned output:
27+
28+
`cat {{path/to/input_file}} | col {{[-x|--spaces]}} > {{output_file}}`

0 commit comments

Comments
 (0)