I want to merge lines that share common prefix. Example:
a 1
a 2
bc-de 3 4
bc-de 5
After merging:
a 1 2
bc-de 3 4 5
The prefix is a string with hypens
I want to merge lines that share common prefix. Example:
a 1
a 2
bc-de 3 4
bc-de 5
After merging:
a 1 2
bc-de 3 4 5
The prefix is a string with hypens