colrm - remove columns from a file
colrm [startcol [endcol]]
colrm removes the named columns from each line of its standard input (one column = one character). Column numbering starts at 1, not 0.
If a only startcol is provided, removes all columns from startcol rightwards.
If both startcol and endcol are provided, removes all columns from startcol to endcol, inclusive.
If neither is provided, acts just like cat.
If firstcol is greater than lastcol, or the arguments aren't numeric, it pretends it heard no arguments at all, just like the Linux version.
Jeffrey S. Haemer
Lacks the special-case handling of backspace and tab added in some other versions. Acts, instead, like the simpler Linux and SunOS versions.
awk(1)