---
layout: page
author: Domenico Votta
category-page: advanced
category-title: Advanced commands
tags: remove column
title: colrm
---
The 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:
example.txt
{% highlight bash linenos %}
123456789
abcdefghi
{% endhighlight %}
The syntax command is:
colrm [first] [last]
colrm 4 < example.txt 123 abc
How you can see, if I don't indicate the last column, the command removes all the colums starting from 4 included.
colrm 2 4 < example.txt 156789 aefghi
Here, how you can see, the command has removed not all the columns, but only the colums that starting at 2 and ending at 4, included.