Parent path is
/opt/data/ and within
data folder there are multiple subfolders and within those subfolders there are multiple files which I want to rename only some part of it using bash.
Original file name:
which I want to change all files with in all sub directory as:
Hope I elaborate the scenario clearly.
solution was given by philiphs work great but it is changing the other file extension as well in directories , I want to change only .xy file tension and other then that extension should be excluded.