Team advanced: added colrm.html
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@236 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
6eb1a32121
commit
2a33f91d31
1 changed files with 33 additions and 0 deletions
33
site/pages/cmd/advanced/colrm.html
Normal file
33
site/pages/cmd/advanced/colrm.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
layout: page
|
||||
author: Domenico Votta
|
||||
category-page: advanced
|
||||
category-title: Advanced commands
|
||||
tags: remove column
|
||||
title: colrm
|
||||
---
|
||||
The <code>colrm</code> is a command that removes the column that you indicate <br>
|
||||
|
||||
Here we have a file named <code>example.txt</code> that contains two lines to test this command:<br>
|
||||
|
||||
<code>example.txt</code>
|
||||
{% highlight bash linenos %}
|
||||
123456789
|
||||
abcdefghi
|
||||
{% endhighlight %}
|
||||
|
||||
The syntax command is:
|
||||
<pre> colrm [first] [last]</pre>
|
||||
|
||||
<pre>
|
||||
colrm 4 < example.txt
|
||||
123
|
||||
abc
|
||||
</pre>
|
||||
<p>How you can see, if I don't indicate the last column, the command removes all the colums starting from 4 included. </p>
|
||||
<pre>
|
||||
colrm 2 4 < example.txt
|
||||
156789
|
||||
aefghi
|
||||
</pre>
|
||||
<p>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. </p>
|
Loading…
Reference in a new issue