title: How to remove the extension of a file?
body: <p>I have a folder that is full of .bak files and some other files also. I need to remove the extension of all .bak files in that folder. How do I make a command which will accept a folder name and then remove the extension of all .bak files in that folder ?</p>
  
  <p>Thanks.</p>