Hi,
Im new to awk and would be very grateful if you could help with the following. I have a number of data files with the following format
x
1
2
3
y
4
5
6
z
7
8
9
vel
2
3
4
and I would like to split them into 4 columns and save the output to new files as:
1 4 7 2
2 5 8 3
3 6 9 4
The nr. of values between x,y,z and vel can vary from file to file but within the same file there are always as many x's as there are y's z's and vel's.
Im new to awk and would be very grateful if you could help with the following. I have a number of data files with the following format
x
1
2
3
y
4
5
6
z
7
8
9
vel
2
3
4
and I would like to split them into 4 columns and save the output to new files as:
1 4 7 2
2 5 8 3
3 6 9 4
The nr. of values between x,y,z and vel can vary from file to file but within the same file there are always as many x's as there are y's z's and vel's.