Hi folks just started write code in bash but stuck in my own question in want to count a to alphabets repetation in string like
read -p 'enter the string' str # SUPPOSE STRING USER ENTER IS
input = AAASSSSFFRREEE
i wanna get output like= A3S4F2R2E3
what can i do i am trying with for condition and this program is making monkey out of me