rs (ReShape) is a Command Line Interface tool to reformat an array of data in to rows and columns.
Example of who command:
who
ngrogan pts/0 2023-03-17 12:23 (192.168.1.1 via mosh [49655])
ngrogan pts/1 2023-03-14 17:27 (192.168.1.135)
ngrogan pts/2 2023-03-15 22:22 (tmux(102837).%0)
ngrogan pts/4 2023-03-17 09:44 (mosh [192222])
Then piped to rs to change to 4 rows and 3 columns:
who | rs 4 3
ngrogan pts/0 2023-03-17
12:23 (192.168.1.1 via
mosh [49655]) ngrogan
pts/1 2023-03-14 17:27