In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Linux common command col how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux common command col how to use" this article.
Linux common commands col commands are used to filter control characters, and there are RLF control characters in many UNIX documentation. When we use the shell special characters ">" and "> >" to output the contents of the description file into a plain text file, the control characters will become garbled, and the col instruction can effectively filter out these control characters.
Syntax col [- bfx] [- l] parameter:
-b filter out all control characters, including RLF and HRLF.
-f filters out RLF characters, but allows HRLF characters to be rendered.
-x represents a tabbed character as multiple space characters.
-l the default memory buffer has 128 columns. You can specify the size of the buffer.
The following example takes the man command help document as an example to explain the use of the col command.
Save the help document for the man command as man_help and use the-b parameter to filter all control characters. Use the following command in the terminal:
Man man | col-b > man_help Note: where "|" is used to establish a pipeline to convert the output of the man command into the input data of the col command.
The above is all the contents of the article "how to use Linux commands col". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.