colrm Command

Purpose

Extracts columns from a file.

Syntax

colrm First [Last]

Description

The colrm command 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 are removed starting with the specified column. If called with two parameters, the columns from the first column to the last column are removed.

Column numbering starts with column 1.

Examples

To remove columns from the text.fil file, enter:

colrm 6 < text.fil

If text.fil contains:

123456789

then the colrm command displays:

12345

Files

Item Description
/usr/bin/colrm Contains the colrm command.