My task is using grep to find how many times the same character occurs twice in a row.I was thinking about something like this but it isn`t working  grep '[a-zA-z]{2}' *.txt | wcHow can achieve such a task with grep?
How many times does the same character occur twice in a row
grep;regular expression