title: Remove column in awk command
body: <p>I want to remove column as for now i have command that include splitting, header and trailer in one command. I wanted to do splitting, header, trailer and <em>remove first 3 columns</em> in one command. </p>
  
  <p>My original output is</p>
  
  <pre><code>  Country   Gender    Plate       Name        Account Number        Car Name
      X        F          A          Fara        XXXXXXXXXX            Ixora
      X        F          b          Jiha        XXXXXXXXXX            Saga
      X        M          c          Jiji        XXXXXXXXXX            Proton
  </code></pre>
  
  <p>My splited files:</p>
  
  <p><em>first file</em> </p>
  
  <p>06032017</p>
  
  <pre><code>  Country   Gender    Plate       Name    Account Number     Car Name        
      X        F          A     Fara        XXXXXXXXXX         Ixora
  </code></pre>
  
  <p>EOF 1</p>
  
  <p><em>second file</em><br>
  06032017 </p>
  
  <pre><code>  Country   Gender    Plate       Name        Account Number        Car Name
      X        F          b          Jiha        XXXXXXXXXX            Saga
  </code></pre>
  
  <p>EOF1</p>
  
  <p>My desitre output: </p>
  
  <p>06032017</p>
  
  <pre><code>    Name    Account Number     Car Name        
      Fara        XXXXXXXXXX         Ixora
  </code></pre>
  
  <p>EOF 1</p>
  
  <p>06032017 </p>
  
  <pre><code>  Name        Account Number        Car Name
    Jiha        XXXXXXXXXX            Saga
  </code></pre>
  
  <p>EOF1</p>
  
  <p>This is my splitted command:</p>
  
  <pre><code>awk -v date="$(date +"%d%m%Y")" -F\| 'NR==1 {h=$0; next} 
  {file="CAR_V1_"$1"_"$2"_"date".csv"; print (a[file]++?"": "DETAIL "date"" ORS h ORS) $0 &gt; file}
  END{for(file in a) print "EOF " a[file] &gt; file}' HIRE_PURCHASE_testing.csv
  </code></pre>