shell script to change the extension of a file

view story

http://www.unix.com – I have a directory that contains several files, out of which some files are have an extra extension for example Code: file1.new.new.new file2.new.new.new file3.new.new.new file4.new.new.new i want to write a shell script that rename all such file with only single extension like Code: file1.new file2.new ... need help on this (HowTos)