colrm (remove columns from a text file)

Removes specified columns from a text file. A column is a single character wide.

Format:    colrm startcolnum stopcolnum
Examples:  colrm 1 3 <report1 > report2

Removes columns 1, 2, and 3 from report1 and stores the altered file contents in report2, as shown below:

					cat report1
abcde
12345
Hello

cat report2
de
45
lo

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.