title: Sort a tab delimited file based on column sort command bash
body: <p>I am trying to sort this file based on the fourth column. I want the file to reordered based on the values of the fourth column.</p>
  
  <p>File: </p>
  
  <pre><code>2   1:103496792:A   0   103496792
  3   1:103544434:A   0   103544434
  4   1:103548497:A   0   103548497
  1   1:10363487:T    0   10363487
  </code></pre>
  
  <p>I want it sorted like this:</p>
  
  <pre><code>1   1:10363487:T    0   10363487
  2   1:103496792:A   0   103496792
  3   1:103544434:A   0   103544434
  4   1:103548497:A   0   103548497
  </code></pre>
  
  <p>I tried this command:</p>
  
  <pre><code>sort -t$'\t' -k1,1 -k2,2 -k3,3 -k 4,4 &lt;filename&gt;
  </code></pre>
  
  <p>But I get illegal variable name error. Can somebody help me with this?</p>