title: How do I combine two files into one?
body: <p>i have 2 and possibly more files to process. 
  file 1:</p>
  
  <pre><code>20150115,6601,30,4303.60,751,9000707480,20141201,TM985761,6870904569,USD,FX0000000000000000000001
  20150115,6601,30,4303.60,751,9000707480,20141201,TM951728,6870904569,USD,FX0000000000000000000002
  </code></pre>
  
  <p>file 2:  </p>
  
  <pre><code>20150115,6601,30,2400.00,751,9000707845,20141201,TM960897,6870904569,USD,FX0000000000000000000003
  20150115,6601,30,2400.00,751,9000707845,20141201,TM946939,6870904569,USD,FX0000000000000000000004
  </code></pre>
  
  <p>so how to combine these files into </p>
  
  <p>file 3:</p>
  
  <pre><code>20150115,6601,30,4303.60,751,9000707480,20141201,TM985761,6870904569,USD,FX0000000000000000000001
  20150115,6601,30,4303.60,751,9000707480,20141201,TM951728,6870904569,USD,FX0000000000000000000002
  20150115,6601,30,2400.00,751,9000707845,20141201,TM960897,6870904569,USD,FX0000000000000000000003
  20150115,6601,30,2400.00,751,9000707845,20141201,TM946939,6870904569,USD,FX0000000000000000000004
  </code></pre>
  
  <p>by now, im unable to process multiple files using below </p>
  
  <pre><code>cd /npcs/Rel2A/PROD/inbound/FXCSV/received
  for i in `ls -l *.csv.dat | awk '/^-/ {print $NF}'`
  do
  cp $i /npcs/Rel2A/PROD/inbound/FXCSV/bckp_files/$i.orig
        echo $i
  awk -F, '{for(i=1;i&lt;=NF;i++){printf "%-20s", $i};printf "\n"}'  $i  &gt; fxcsv00.dat
  </code></pre>
  
  <p>please help</p>