$ cat 1
qwer 1234 #@!$

$ fmt -1 1
qwer
1234
#@!$

 

(https://unix.stackexchange.com/questions/169995/rows-to-column-conversion-of-file)

man fmt

FMT(1)                           User Commands                          FMT(1)

NAME
       fmt - simple optimal text formatter

SYNOPSIS
       fmt [-WIDTH] [OPTION]... [FILE]...

DESCRIPTION
       Reformat  each  paragraph  in  the FILE(s), writing to standard output.
       The option -WIDTH is an abbreviated form of --width=DIGITS.
...