I want to break a column into different rows. e.g.,
test.dat
1
4
3
4
6
2
4
6
8
What I want is to break it into a 3 x 3 matrix
out.dat
1 4 4
4 6 6
3 2 8
I want to break a column into different rows. e.g.,
test.dat
1
4
3
4
6
2
4
6
8
What I want is to break it into a 3 x 3 matrix
out.dat
1 4 4
4 6 6
3 2 8
Copyright © 2021 Jogjafile Inc.
Try using:
It is good and short if you don't want to use
awk
.There are other methods too (one I told you, I also learnt it from there):
Convert text file into columns