Renaming file names in a shell script

I want to write a shell script that will rename all the file names to today's date attached to it..

so for example i have a file names like

file1.sales.20081201.txt.c
zbrs.salestxtn.20091101.txt.inn

then it will rename both the files with todays date to it so the file names get changed like below.

file1.sales.01262009.txt.c
zbrs.salestxtn.01262009.txt.inn

any suggestions.

## I will NEVER use that ridiculous, ambiguous date format
date=$( date +%Y%m%d )

pattern=[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
for file in *$pattern*
do
  left=${file%$pattern*}
  right=${file#*$pattern}
  newname=$left$date$right
  mv "$file" "$newname"
done