Created
February 26, 2016 15:23
-
-
Save outsinre/20817cc11943776f322b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I want to merge lines that share common prefix. Example: | |
``` | |
a 1 | |
a 2 | |
a-b 3 | |
a-b 4 | |
a-b 5 | |
``` | |
After merging: | |
``` | |
a 1 2 | |
a-b 3 4 5 | |
``` | |
The prefix is *a string with hypens* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment