commands.sh

col

linux

Filter reverse line feeds from input.

More info →

Options (3)

-x, --spacesboolean

Filter reverse line feeds and output with spaces instead of tabs

Example: {{command}} | col {{[-x|--spaces]}}
-b, --no-backspacesboolean

Remove backspaces, output only the last character written to each position

Example: {{command}} | col {{[-b|--no-backspaces]}}
-l, --linesboolean

Specify a buffer size with a specific number of lines

Example: {{command}} | col {{[-l|--lines]}} {{num}}

Examples (6)

Filter reverse line feeds from input

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
made by @shridhargupta | data from tldr-pages