I want to have standard output for KEGG pathways of a gene placed side by side no matter how many lines of the KEGG pathways it has. For example, a gene TT123456 is involves in several pathways:
Valine, leucine and isoleucine degradation
Histidine metabolism
Ascorbate and aldarate metabolism
Lysine degradation
Glycerolipid metabolism
By using the sed command
sed '$!N;s/\n/\t/'
I able to have two lines joined side by side
Valine, leucine and isoleucine degradation Histidine metabolism
Ascorbate and aldarate metabolism Lysine degradation
Glycerolipid metabolism
But, I would like to have the output as
Valine, leucine and isoleucine degradation Histidine metabolism Ascorbate and aldarate metabolism Lysine degradation Glycerolipid metabolism
I have been searching around, but, I failed to find a good solution.
Could the community please shares your expertise with me?
Thank you.