COLRM(1)
π NAME π
colrm β bestie, this one literally just removes columns from a file βοΈβ¨
πΈ SYNOPSIS πΈ
colrm [startcol [endcol]]
π¦ DESCRIPTION π¦
okay so picture this: colrm takes your standard input and chops the named columns out of each line (and yes, one column = one character, don't overthink it π«Ά).
big important vibe check: column numbering starts at 1, not 0. not me almost crying over zero-indexing again π literally do not come at it with programmer-brain numbering, she's a 1-based girlie.
- if you only hand her
startcol, she removes all the columns fromstartcolrightwards. everything. gone. to the end of the line. periodt π - if you give her both
startcolandendcol, she removes all the columns fromstartcoltoendcol, inclusive β soendcolgets got too, no cap π₯ - if you give her neither, she just... acts exactly like
cat. iconic behavior honestly, zero notes, she's just passing your text through untouched π
β¨ OPTIONS AND ARGUMENTS β¨
startcolβ the first column to remove π this is where the deleting begins.endcolβ the last column to remove π inclusive, babe, she's included in the carnage.
π§ AUTHOR π§
Jeffrey S. Haemer β ty for your service, king π«‘π
π BUGS π
ngl, she lacks the special-case handling of backspace and tab that got added in some other versions π¬ instead she acts just like the simpler Linux and SunOS versions. so if you were expecting fancy tab/backspace-aware behavior, that's a different girlie, not her π
π SEE ALSO π
awk(1)β go say hi to the other text-processing legend π«
that's the whole page, bestie β slay, stan, and remember: 1-based columns only π
signed, sealed, delivered by perl v5.42.2 on 2026-02-15 β she's dated, she's versioned, she ate ππ¦
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms