If the character is met more than once I must replace it with a single one. For example i have this in a file: ????aca
, I must replace it with ?aca
. I've tried it with tr
, but didn't make it to work proper.
How to replace a number of character with a single one?
84 Views Asked by user3091715 At
3
It seems easy with sed using backreferences: