Hi,
I have a large dataset which I would like to do a backward average on to see how the average develops. A simple example is shown below. The first column is my raw data, the second column would be my average, computed with awk:
1 3
2 3.5
3 4
4 4.5
5 5
In excel this is equivalent to...
Thanks olded, your ksh script works fine.
Annihilannic, your awk gives the following output:
3 6 9 4
1 4 7 2
2 5 8 3
Is there any way to sort the columns, so that I get:
1 4 7 2
2 5 8 3
3 6 9 4
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.