I want to rename the below files, such that the first 4 chars and last 7 chars are removed, the remaining chars to be converted to decimal, while rename.
Example if the filename is
0030002345678.txt, should be renamed to 00.txt(removing the chars and converting to hex).
If it is
00300A2345678.txt, should be renamed to 10.txt(after conversion from hex of '0A'