Hi Experts !
I need to replace multiple consecative occurrences of
a charachter with one such charachter.
Can it be done with a very short code or a one liner may be?
Please use ksh, awk or sed.
For Example -
XXXXXXXXXabcdXXXXlmnopXXXXXXXXcddcXXXXXXXXXXXX1212XXXXX
should be
XabcdXlmnopXcddcX1212X
thanks in advance,
bharix
I need to replace multiple consecative occurrences of
a charachter with one such charachter.
Can it be done with a very short code or a one liner may be?
Please use ksh, awk or sed.
For Example -
XXXXXXXXXabcdXXXXlmnopXXXXXXXXcddcXXXXXXXXXXXX1212XXXXX
should be
XabcdXlmnopXcddcX1212X
thanks in advance,
bharix