I have data file looks like:
1
2 4 5 6 7 19
20
22
24 26 27
29 30 31 32 34 40 50 56 58
234 235 270 500
1234 1235 1236 1237
2300
I want to split those rows with more than 4 column to smaller rows with maximum 4 columns within each row. therefore the output should be:
1
2 4 5 6
7 19
20
22
24 26 27
29 30 31 32
34 40 50 56
58
234 235 270 500
1234 1235 1236 1237
2300
Any suggestion please? Please consider that my real data file is huge.