xref: /csrg-svn/usr.bin/colrm/colrm.1 (revision 61948)
1*61948Sbostic.\" Copyright (c) 1980, 1990, 1993
2*61948Sbostic.\"	The Regents of the University of California.  All rights reserved.
319098Smckusick.\"
443082Scael.\" %sccs.include.redist.man%
519098Smckusick.\"
6*61948Sbostic.\"     @(#)colrm.1	8.1 (Berkeley) 06/06/93
739142Sbostic.\"
843082Scael.Dd
943082Scael.Dt COLRM 1
1043082Scael.Os BSD 3
1143082Scael.Sh NAME
1243082Scael.Nm colrm
1343082Scael.Nd remove columns from a file
1443082Scael.Sh SYNOPSIS
1543082Scael.Nm colrm
1652142Sbostic.Op Ar start Op Ar stop
1743082Scael.Sh DESCRIPTION
1843082Scael.Nm Colrm
1952142Sbosticremoves selected columns from the lines of a file.
2052142SbosticA column is defined as a single character in a line.
2152142SbosticInput is read from the standard input.
2252142SbosticOutput is written to the standard output.
2343082Scael.Pp
2452142SbosticIf only the
2552142Sbostic.Ar start
2652142Sbosticcolumn is specified, columns numbered less than the
2752142Sbostic.Ar start
2852142Sbosticcolumn will be written.
2952142SbosticIf both
3052142Sbostic.Ar start
3152142Sbosticand
3252142Sbostic.Ar stop
3352142Sbosticcolumns are specified, columns numbered less than the
3452142Sbostic.Ar start
3552142Sbosticcolumn
3652142Sbosticor greater than the
3752142Sbostic.Ar stop
3852142Sbosticcolumn will be written.
3952142SbosticColumn numbering starts with one, not zero.
4043082Scael.Pp
4152142SbosticTab characters increment the column count to the next multiple of eight.
4252142SbosticBackspace characters decrement the column count by one.
4343082Scael.Sh SEE ALSO
4443082Scael.Xr awk 1 ,
4543082Scael.Xr column 1 ,
4652142Sbostic.Xr cut 1 ,
4743082Scael.Xr paste 1
4843082Scael.Sh HISTORY
4947399ScaelThe
5052142Sbostic.Nm colrm
5147399Scaelcommand appeared in
5247399Scael.Bx 3.0 .
53