If I had a log file looking like this:
A A B C C C A B B
I would like to output (remove the immediately-successive duplicates):
A B C A B
How do I do this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community