Remove Extension from files in bash

This is a nice simple quick tip to remove all the file extension from a bunch of files in a directory.

This will remove the .dll extenstion from all the files in the current directory, a nice simple one liner.

for f in *.dll; do mv $f `basename $f .dll`; done;

I am always interested in feedback so please feel free to add any comments, or you can mail me  here.  If you would like to submit a quick tip  with full credit and links back to your site then also feel free to contact me.

Related Posts Plugin for WordPress, Blogger...

Move MySQL Database Files

Quickly create some test files