I'm looking for a solution on this.
I have a huge number of files that look like the following,
{some_texthere_133}_Ritem_123.xml
{some_texthere_233}_Ritem_456.xml
{some_texthere_333}_Ritem_564.xml
I would like to detect any file names in the current directory that contain text or underscore within brackets as the prefix followed by underscore outside it as well, and remove that portion of the file name.
Ritem_123.xml
Ritem_456.xml
Ritem_789.xml
The above mentioned format should be the result. Can any one help me.