one column into multiple column

I have a file with data as below. Each row has just one column.
aaaa
bbbb
ccc
ddd
eeee
ffff
gggg
hhhh
iiii

I need the output as

aaaa bbbb ccc ddd
eeee ffff gggg hhhh
iiii

for each 4 rows I want the output in 4 column. For all the data in the file.

Can anyone please help me how to do this?

Thanks in advance.

See if this works for you:

xargs -n4 < File
1 Like

Thank you and it works perfectly.

paste - - - - < infile

You can use also

nawk 'ORS=(FNR%4)?FS:RS' <filename>