So I have a directory with nested folders, and at some point there are .png
images.
The naming of these images is like this "letters_numbers_numbers_letters.png", and I want to delete the underscore between the numbers.
Say that we have a file named a_1_2_b.png
, I want to rename it to a_12_b.png
.
I know I have to use something like:
find . -name "*[0-9]_[0-9]* -type f -exec bash -c <enter_code here>`
but I'm not sure how to specify how to delete this specific underscore. Remember there are two other underscores I don't want to touch.
Thanks in advance!