title: How to delete the first column ( which is in fact row names) from a data file in linux?
body: <p>I have data file with many thousands columns and rows. I want to delete the first column which is in fact the row counter. I used this command in linux:</p>
  
  <pre><code>cut -d " " -f 2- input.txt &gt; output.txt
  </code></pre>
  
  <p>but nothing changed in my output. Does anybody knows why it does not work and what should I do?</p>
  
  <p>This is what my input file looks like:</p>
  
  <pre><code>col1 col2 col3 col4 ...
       1 0 0 0 1
       2 0 1 0 1
       3 0 1 0 0
       4 0 0 0 0 
       5 0 1 1 1 
       6 1 1 1 0
       7 1 0 0 0 
       8 0 0 0 0
       9 1 0 0 0
       10 1 1 1 1
       11 0 0 0 1
      .
      .
      .
  </code></pre>
  
  <p>I want my output look like this:</p>
  
  <pre><code>col1 col2 col3 col4 ...
  0 0 0 1
  0 1 0 1
  0 1 0 0
  0 0 0 0 
  0 1 1 1 
  1 1 1 0
  1 0 0 0 
  0 0 0 0
  1 0 0 0
  1 1 1 1
  0 0 0 1
  .
  .
  .
  </code></pre>
  
  <p>I also tried the <code>sed</code> command: </p>
  
  <pre><code> sed '1d' input.file &gt; output.file
  </code></pre>
  
  <p>But it deletes the first row not the first column.</p>
  
  <p>Could anybody guide me?</p>