[awk] line by line processing the same file

view story

http://www.unix.com – Hey, not too good at this, so I only managed a clumsy and SLOW solution to my problem that needs a drastic speed up. Any ideas how I write the following in awk only? Code is supposed to do... For every line read column values $6, $7, $8 and do a calculation with the same column values of every other line in the same file. If conditions are met, write information out to file. CODE: Code: while read line; do                                                    &n (HowTos)