title: How to find file extension using UNIX?
body: <p>I need to find file extension for file to be processed using UNIX. The two file extension which i will be handling are '.dat' and '.csv'. </p>
  
  <p>Please let me know how this can be done.</p>