[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 1

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

/usr/bin/colrm Contains the colrm command.

Related Information

The cut command.

Files Overview in AIX Version 4.3 System User's Guide: Operating System and Devices introduces you to files and the way you can work with them.

Input and Output Redirection Overview in AIX Version 4.3 System User's Guide: Operating System and Devices describes how the AIX Operating System processes input and output.


[ Previous | Next | Contents | Glossary | Home | Search ]