For example, there is the string Aaaaaaaaabbbbbb. The output should get Aaaaaaaaa9bbbbbb6
Bach newbie. Is there any need to try to loop through the string in a symbolic way, compare it with the previous value, increase the counter if the values are equal and overwrite it in a new line. If so, how to do it in bash? I would be grateful for any help.