a-a 12 34 12
a-a-a 56 56
a-ba-ao-ke-luo 78 90 90
Each line is a key values pattern. The key is a string delimited by hyphens. while values delimited by spaces.
I want to remove duplicate vlaues on each line:
a-a 12 34
a-a-a 56
a-ba-ao-ke-luo 78 90
How to achieve this by bash?