BSD General Commands Manual
colrm — remove columns from a file
colrm [start [stop]]
The colrm utility removes selected columns from the lines of a file. A column is defined as a single charac-
ter in a line. Input is read from the standard input. Output is written to the standard output.
If only the start column is specified, columns numbered less than the start column will be written. If
both start and stop columns are specified, columns numbered less than the start column or greater
than the stop column will be written. Column numbering starts with one, not zero.
Tab characters increment the column count to the next multiple of eight. Backspace characters decrement
the column count by one.
The LANG, LC_ALL and LC_CTYPE environment variables affect the execution of colrm as described in
The colrm utility exits 0 on success, and >0 if an error occurs.
awk(1), column(1), cut(1), paste(1)
The colrm command appeared in 3.0BSD.
August 4, 2004