remove repeating characters from a file

This will help you if you need to remove a repeating characters from a file and replace it with a single instance of that character or even a different character.