colrm

remove columns from a file

TLDR

Remove first column of stdin

>_ colrm [1 1]
copy

Remove from 3rd column till the end of each line

>_ colrm [3]
copy

Remove from the 3rd column till the 5th column of each line

>_ colrm [3 5]
copy

SYNOPSIS

colrm [first[last]]

DESCRIPTION

colrm removes selected columns from a file. Input is taken from standard input. Output is sent to standard output.

If called with one parameter the columns of each line will be removed starting with the specified first column. If called with two parameters the columns from the first column to the last column will be removed.

Column numbering starts with column 1.

OPTIONS

-V , --version Display version information and exit.

-h , --help Display help text and exit.

HISTORY

The colrm command appeared in 3.0BSD.

AVAILABILITY

The colrm command is part of the util-linux package and is available from https:// www.kernel.org /pub /linux /utils /util-linux/ Linux Kernel Archive .

SEE ALSO

awk(1), column(1), expand(1), paste(1)

Copied to clipboard
free 100$ digital ocean credit