{ if ($1 != last1 || abs($2-last2) > 60 ) print last1 = $1; last2 = $2 } function abs(x){ return x > 0 ? x : -x }