editing names of files in multiple folder

I have 1000's of directories which is named as numbers. Each directory contains multiple files. Each of these directories have a file named "att". I need to rename all the att files by adding the directory name followed by "_" then att for each of the directories.

Directories
120 
      att

130
      att

what I need is:

120 
     120_att

130
      130_att

IIs there a way to do it using awk or sed for 1000's of such directories

something like this might work. you may have to adjust it for your env.

find /yourdirname -name 'att' | while read line; do DIR=`basename $(dirname $line)`; mv att "$DIR_att"; done 

HTH.
-RN.

find . -type f -name att | nawk -F/ '{print "mv", $0, $(NF-1)"_" $NF}'

Once satisfied with the output:

find . -type f -name att | nawk -F/ '{print "mv", $0, $(NF-1)"_" $NF}' | sh