title: How to split big tsv file using unique column element and also keep header
body: <p>I have a tsv file called myfile.tsv. I want to split this file based on unique element in chr column using <code>awk/gawk/bash</code> or any faster command line and get chr1.tsv (header+row1), chr2.tsv (header+rows2 and 3),chrX.tsv(header+row4),chrY.tsv(header+rows5and6) and chrM.tsv(header+last row). </p>
  
  <p>myfile.tsv</p>
  
  <pre><code>   chr    value       region
    chr1      223         554
    chr2      433         444 
    chr2      443         454 
    chrX      445         444 
    chrY      445         443    
    chrY      435         243
    chrM      543         544 
  </code></pre>