English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux 'col' command is used to filter control characters.
Many UNIX documentation files contain RLF control characters. When we use shell special characters '>/' and '>>' to output the content of the documentation files as plain text files, the control characters become garbled. The 'col' command can effectively filter out these control characters.
col [-bfx][-[l<Buffer Column Number>]
Parameters:
The following takes the help document of the 'man' command as an example to explain the usage of the 'col' command.
Save the help document of the 'man' command as 'man_help' using-The 'b' parameter filters all control characters. Use the following command in the terminal:
man man | col-b > man_help
Note:The '|' symbol is used to create a pipeline, converting the output of the 'man' command into input data for the 'col' command.