title: Script to open latest text file from a directory
body: <p>I need a shell script to open latest text file from a given directory. it will be then copied to another directory. How can i achieve it?</p>
  
  <p>I need a logic which will search and give the latest file from a directory (name of the text file can be anything (not fixed), so i need to find out latest text file)</p>