In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the usage of the Linux basic command colrm". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the usage of the Linux basic command colrm".
Colrm
Reads data from standard input, deletes the specified column, and sends it to standard output. If called with one parameter, the column of each row is deleted starting with the specified column. If called with two parameters, the column from the first column to the last column is deleted. The column number starts with column 1.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Colrm [startcol] [endcol]
2. List of options
None
3. Examples
1) delete the column after column 5
[root@192 weijie] # cat 1.c / / display content
Hello world
I am david
Love linux
This code
Nihao ed
[root@192 weijie] # colrm 5 < 1.c / / after deleting column 5
Hell
I am
Love
This
Niha
2) Delete 5'9 columns
[root@192 weijie] # colrm 5 9 < 1.c / / Delete 5'9 columns
Hellld
I amd
Lovex
This
Niha
3) do not delete, show all
[root@192 weijie] # colrm < 1.c / / No columns are specified, and all
Hello world
I am david
Love linux
This code
Nihao ed
Thank you for your reading, the above is the content of "the usage of the Linux basic command colrm". After the study of this article, I believe you have a deeper understanding of the usage of the Linux basic command colrm, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.