Linux colrm command usage

  
        

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 the specified column from a file, providing input from a standard 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 # Remove all from the fourth column 


Example 2.

$ colrm 4 6 < test.file then the content of test.file is: 123789 # Remove the fourth column to the sixth case 3.
$ colrm 4 6 < test.file >test.file1 will test.file The removed file is output to test.file1123789
Copyright © Windows knowledge All Rights Reserved