Removing columns in text files (colrm command)
Use the colrm command to remove specified columns from a file. Input is taken from standard input. Output is sent to standard output.
If the command is called with one parameter, the columns of each line from the specified
column to the last column are removed. If the command is called with two parameters, the columns
from the first specified column to the second specified column are removed.
Note: Column numbering
starts with column 1.
See the following examples:
- To remove columns from the text.fil file, type the following:
If text.fil contains:colrm 6 < text.fil
then the colrm command displays:123456789
12345