title: Change extension of file using shell script
body: <p>How to change extension of all *.dat files in a directory to *.txt. 
  Shell script should take the directory name as an argument. Can 
  take multiple directories as arguments. Print the log of command 
  result in appending mode with date and timestamp.</p>