I have the following list in file
more file.ex
efifc1a
hygg4a
hdy5d
nhdw4s
wesf3a
fjfhyr
jfhg
gsfar
how to append any second list after the first list and any third list after the second list the following:
efifc1a nhdw4s jfhg
hygg4a wesf3a gsfar
hdy5d fjfhyr