xref: /original-bsd/usr.bin/colrm/colrm.1 (revision c3e32dec)
1.\" Copyright (c) 1980, 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)colrm.1	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Dt COLRM 1
10.Os BSD 3
11.Sh NAME
12.Nm colrm
13.Nd remove columns from a file
14.Sh SYNOPSIS
15.Nm colrm
16.Op Ar start Op Ar stop
17.Sh DESCRIPTION
18.Nm Colrm
19removes selected columns from the lines of a file.
20A column is defined as a single character in a line.
21Input is read from the standard input.
22Output is written to the standard output.
23.Pp
24If only the
25.Ar start
26column is specified, columns numbered less than the
27.Ar start
28column will be written.
29If both
30.Ar start
31and
32.Ar stop
33columns are specified, columns numbered less than the
34.Ar start
35column
36or greater than the
37.Ar stop
38column will be written.
39Column numbering starts with one, not zero.
40.Pp
41Tab characters increment the column count to the next multiple of eight.
42Backspace characters decrement the column count by one.
43.Sh SEE ALSO
44.Xr awk 1 ,
45.Xr column 1 ,
46.Xr cut 1 ,
47.Xr paste 1
48.Sh HISTORY
49The
50.Nm colrm
51command appeared in
52.Bx 3.0 .
53