--- layout: page author: Domenico Votta category-page: advanced category-title: Advanced commands tags: remove column title: colrm previous-page: pages/cmd/advanced/bc.html next-page: pages/cmd/advanced/comm.html --- colrm is a command that removes the column that you indicate
Here we have a file named example.txt that contains two lines to test this command:
{% highlight bash %} 123456789 abcdefghi {% endhighlight %} The syntax command is:
colrm [first] [last]
colrm 4 < example.txt
    123
    abc
As you can see, if I don't indicate the last column, the command removes all the columns starting from 4 included.
colrm 2 4 < example.txt
    156789
    aefghi
Here, as you can see, the command has not removed all the columns, but only the columns that between 2 and 4, inclusive