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