In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use Linux common command colrm", the content is simple and easy to understand, clear organization, I hope to help you solve doubts, let Xiaobian lead you to study and learn "Linux common command colrm how to use" this article bar.
The colrm command, a common Linux command, is used to filter out specified lines. The colrm command reads the script from the standard input device and outputs it to the standard output device. If no arguments are added, the instruction does not filter any lines.
Syntax colrm [number of start lines] Parameter description:
Start Row Number: Specifies the start number of the column to delete.
End Row Number: Specifies the end number of the column to delete, sometimes this parameter can be omitted
After pressing Enter, the cursor flashes on the first line, waiting for standard input, at which point a character such as "Hello Linux! ", press Enter key again, the second line will appear the same content as the first line, press Ctrl+C key combination at this time to exit. The contents displayed in the terminal are as follows:
colrm Hello Linux! #Enter Hello Linux! string Hello Linux! #Output the string Hello Linux! 123 To delete everything after column 4, use the following command
cmd@hdd-desktop:~$ colrm 4 Hello Linux! #Enter Hello Linux! string Hel #Output string 123 Delete the contents of the specified column. To delete the contents of columns 4 to 6, use the following command:
cmd@hdd-desktop:~$ colrm 4 6 Hello Linux! #Enter Hello Linux! string HelLinux! #Output deleted from the fourth column to the sixth column character string above is "Linux common command colrm how to use" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to 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.