hello all.
so i have this text file, a section of which looks like this:
Quote:
KH6:1:1
4691814
4691814
4691814
4691814
4691814
KT3:1:1
4691815
4691815
4691815
4691816
4691816
4691816
|
i would very very much like for it to look like this:
Quote:
KH6:1:1
KH6:1:1 4691814
KH6:1:1 4691814
KH6:1:1 4691814
KH6:1:1 4691814
KH6:1:1 4691814
KT3:1:1
KT3:1:1 4691815
KT3:1:1 4691815
KT3:1:1 4691815
KT3:1:1 4691816
KT3:1:1 4691816
KT3:1:1 4691816
|
reading around i guess i need to get it to hold the line in the buffer when it finds a ":" (the common bit of text in the left column) and print at the start of each line until it finds another ":".
is that right guys? i am very new to sed and am struggling.
many thanks in advance for any help.