welcome to the 90's (or at least the 80's); complete rewrite.
[unix-history] / usr / src / usr.bin / colrm / colrm.1
.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)colrm.1 6.7 (Berkeley) %G%
.\"
.Dd
.Dt COLRM 1
.Os BSD 3
.Sh NAME
.Nm colrm
.Nd remove columns from a file
.Sh SYNOPSIS
.Nm colrm
.Op Ar start Op Ar stop
.Sh DESCRIPTION
.Nm Colrm
removes selected columns from the lines of a file.
A column is defined as a single character in a line.
Input is read from the standard input.
Output is written to the standard output.
.Pp
If only the
.Ar start
column is specified, columns numbered less than the
.Ar start
column will be written.
If both
.Ar start
and
.Ar stop
columns are specified, columns numbered less than the
.Ar start
column
or greater than the
.Ar stop
column will be written.
Column numbering starts with one, not zero.
.Pp
Tab characters increment the column count to the next multiple of eight.
Backspace characters decrement the column count by one.
.Sh SEE ALSO
.Xr awk 1 ,
.Xr column 1 ,
.Xr cut 1 ,
.Xr paste 1
.Sh HISTORY
The
.Nm colrm
command appeared in
.Bx 3.0 .