title: extract last word from each line in shell
body: <p>i have file result.txt which look like this:</p>
  
  <pre><code>acb.xyz.asd
  mnt.x.sdr
  s.ere.43
  </code></pre>
  
  <p>I want to write shell script which will extract the last word and print like below:</p>
  
  <pre><code>asd
  sdr
  43
  </code></pre>
  
  <p>I tried awk command but it didn't work:</p>
  
  <pre><code>awk 'NF&gt;1{print $NF}' result.txt
  </code></pre>
  
  <p>I think i need to use delimiter "." and then parse the result.txt based on parse result. Plz help.  </p>