I have a tab-delimited file with a number and the names belonging to the same number on the same row. The number and names are separated by a tab. The names are linked with each other by 2 underscores (__
). It looks like this:
33 Hhe.1__Hhe.2__Hhe.3__Hhe.4
I would like to convert it (by using the command line) to this output:
33 Hhe.1
33 Hhe.2
33 Hhe.3
33 Hhe.4
man col
but it wouldn't duplicate the first number. Related though – Xen2050 Apr 12 '16 at 15:08