# COLRM - remove columns from a file - man - [phpMan]

> **TLDR:** Remove columns from `stdin`.
>
- Remove first column of `stdin`:
  `colrm {{1 1}}`
- Remove from 3rd column till the end of each line:
  `colrm {{3}}`
- Remove from the 3rd column till the 5th column of each line:
  `colrm {{3 5}}`

*Source: tldr-pages*

---

[_COLRM_(1)](https://www.chedong.com/phpMan.php/man/COLRM/1/markdown)                                    User Commands                                   [_COLRM_(1)](https://www.chedong.com/phpMan.php/man/COLRM/1/markdown)

## NAME
       colrm - remove columns from a file

## SYNOPSIS
       **colrm _**[first_ _[last]]_

## DESCRIPTION
       **colrm **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 will be removed starting with the
       specified _first_ column. If called with two parameters the columns from the _first_ column to
       the _last_ column will be removed.

       Column numbering starts with column 1.

## OPTIONS
### -h --help
           Display help text and exit.

### -V --version
           Print version and exit.

## HISTORY
       The **colrm **command appeared in 3.0BSD.

## SEE ALSO
       [**awk**(1p)](https://www.chedong.com/phpMan.php/man/awk/1p/markdown), [**column**(1)](https://www.chedong.com/phpMan.php/man/column/1/markdown), [**expand**(1)](https://www.chedong.com/phpMan.php/man/expand/1/markdown), [**paste**(1)](https://www.chedong.com/phpMan.php/man/paste/1/markdown)

## REPORTING BUGS
       For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>.

## AVAILABILITY
       The **colrm **command is part of the util-linux package which can be downloaded from Linux Kernel
       Archive <<https://www.kernel.org/pub/linux/utils/util-linux/>>.

util-linux 2.39.3                            2023-10-23                                     [_COLRM_(1)](https://www.chedong.com/phpMan.php/man/COLRM/1/markdown)
