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
Also printf '%s ' $(< file) or printf '%s ' $(cat file) if your shell doesn't have $(< ...).
printf '%s ' $(< file)
printf '%s ' $(cat file)
$(< ...)