title: Formatting output using awk
body: <p>I've a file with following content:</p>
  
  <pre><code>A 28713.64                  27736.1000
  B 9835.32
  C 38548.96
  </code></pre>
  
  <p>Now, i need to check if the last row in the first column is 'C', then the value of first row in third column should be printed in the third column against 'C'.</p>
  
  <p>Expected Output:</p>
  
  <pre><code>A 28713.64                  27736.1000
  B 9835.32
  C 38548.96                  27736.1000
  </code></pre>
  
  <p>I tried below, but it's not working:</p>
  
  <pre><code>awk '{if ($1 == "C") ; print $1,$2,$3}' file_name
  </code></pre>
  
  <p>Any help is most welcome!!!</p>