Suppose I have the following table:
E 12.02
T 9.10
A 8.12
O 7.68
I 7.31
N 6.95
S 6.28
R 6.02
H 5.92
D 4.32
L 3.98
U 2.88
C 2.71
M 2.61
F 2.30
Y 2.11
W 2.09
G 2.03
P 1.82
B 1.49
V 1.11
K 0.69
X 0.17
Q 0.11
J 0.10
Z 0.07
Values are separated by tabs.
I want to put this table in n columns of maximum length m.
For example, for n=7 (m=4):
E 12.02 I 7.31 H 5.92 C 2.71 W 2.09 V 1.11 J 0.10
T 9.10 N 6.95 D 4.32 M 2.61 G 2.03 K 0.69 Z 0.07
A 8.12 S 6.28 L 3.98 F 2.30 P 1.82 X 0.17
O 7.68 R 6.02 U 2.88 Y 2.11 B 1.49 Q 0.11
How would I do that?
split -l 4 ip.txt op ; paste op*– sp asic 6 hours ago