title: Split csv file in bash accord to column value
body: <p>I've a CSV file like this:</p>
  
  <pre><code>file1
  
  field1 field2 field3 field4 
  000000 nodata NP1212 1.1212
  000000 212344 NP1212 1.1232  
  000000 343423 NX3212 1.2342  
  000000 542346 NX3212 1.6345  
  000000 nodata NZ3244 1.0345 
  </code></pre>
  
  <p>It is tab delimited, with about 70000 rows, with 23 field and sorted by field3. How can I split it by rows to create this kind of outputs?</p>
  
  <pre><code>file1_NP1212
  
  field1 field2 field3 field4  
  000000 nodata NP1212 1.1212  
  000000 212344 NP1212 1.1232  
  
  file1_NX3212
  
  field1 field2 field3 field4    
  000000 343423 NX3212 1.2342  
  000000 542346 NX3212 1.6345  
  
  file1_NZ3244
  
  field1 field2 field3 field4   
  000000 nodata NZ3244 1.0345 
  </code></pre>