Trying to combine some of the data that I have. The input will look like this:
foo bar
foo baz boo
abc def
abc ghi
And I would like the result to look like this:
foo bar baz boo
abc def ghi
I have ideas using some arrays in a shell script, but I was looking for a more elegant or faster solution.
source
share