It's the last line (0.2) I'm interested in, basically it's the timings from cUrl I'm trying to average. Ideally I'd want to have to awk keep running for n amount of lines, if I need to up the re-running of the check.
How can I get it just to print the last result, or to pull the last result as a variable into my next if this do that nugget?
Thanks in advance, I think I broke google looking for the answer, sorry if I've slowed down your searches today (and yesterday).
I think I'd gone AWK-blind, I can see what's happening now, tell it the lines you're interested in, sum those lines, END to get a total? Then divide by 3.
I'm afraid that title plus specification in post #1 are misleading, at least for me who is not a native speaker. Trying to infer the correct meaning, I'd propose
awk '!((NR-1)%3) {sum+=$1} END {print sum/3}' file