The colrm command usage in Linux

  

NAME

The colrm command is also a relatively common command in the shell. It is simple to remove or filter the specified column from the specified file.

SYNOPSIS

colrm [startcol [endcol ] ]

DESCRIPTION

The Colrm command removes a specified column from a file, from a standard Input is provided in the input file, and the output is also standard output.

EXAMPLE

If:

File: text.file

Content: 123456789

Example 1.

$ colrm 4 < test.file

Then the contents of test.file are:

123 # Move all from the fourth column Except for

Example 2.

$ colrm 4 6 < test.file

Then the contents of test.file are:

123789 #去除Fourth to sixth

Example 3.

$ colrm 4 6 < test.file >test.file1

After removing test.file File, output to test.file1

123789

Copyright © Windows knowledge All Rights Reserved