# Determine Dorado propeller start and stop times. Input file is the output of # 'readlog' utility on tailCone.log BEGIN { # Assume not spinning to begin with spinning = 0; } NF != 11 { next; } /^#/ { # Comment - skip it next; } { if ($7 > 20 && !spinning) { # Prop just started turning printf "%s ", $1; spinning = 1; } if ($7 <= 10 && spinning) { # Prop just stopped printf "%s\n", $1; spinning = 0; } prevRpm = $7; } END { print " "; }