mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 06:50:08 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/linux/col
Normal file
33
tldr/linux/col
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# col
|
||||
|
||||
> Filter reverse line feeds from input.
|
||||
> More information: <https://manned.org/col>.
|
||||
|
||||
- Filter reverse line feeds from input:
|
||||
|
||||
`{{command}} | col`
|
||||
|
||||
- Filter reverse line feeds and output with spaces instead of tabs:
|
||||
|
||||
`{{command}} | col {{[-x|--spaces]}}`
|
||||
|
||||
- Remove backspaces, output only the last character written to each position:
|
||||
|
||||
`{{command}} | col {{[-b|--no-backspaces]}}`
|
||||
|
||||
- Specify a buffer size with a specific number of lines:
|
||||
|
||||
`{{command}} | col {{[-l|--lines]}} {{num}}`
|
||||
|
||||
- Format a manual page for viewing with `less`:
|
||||
|
||||
`man ls | col {{[-b|--no-backspaces]}} | less`
|
||||
|
||||
- Process a file with reverse line feeds and save the cleaned output:
|
||||
|
||||
`cat {{path/to/input_file}} | col {{[-x|--spaces]}} > {{output_file}}`
|
||||
Reference in New Issue
Block a user