One way to do this:
Change to the directory where your to-be-renamed files are, and enter (in bash):
Code:
OLDEXT="cc"
NEWEXT="cpp"
for i in *.$OLDEXT ; do mv "$i" "${i%.*}.$NEWEXT" ; done
Where you should change the extensions ("cc" and "cpp") to your own needs of course.