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.
The first column to remove.
The last column to remove.
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.
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.