Agora tenho uma solução em funcionamento
BEGIN {
SearchMinFlag = 0;
TempLimit = 195.0
DeltaTime = 550
TempMin = "LEER"
FS = "\t"
}
# Stop MinSearch
NR > 2 && $1 > tstop {SearchMinFlag = 0}
# MinSearch
SearchMinFlag == 1 {
ywert = $2;
if (ywert < TempMin) {
TempMin = ywert;
TimeMin = $1
}
}
# Start MinSearch
NR > 2 && $2 > TempLimit && SearchMinFlag == 0 && TempMin == "LEER" {
SearchMinFlag = 1;
tstart = $1
tstop = tstart + DeltaTime
ymerk = $2;
TempMin = 10000
}
# Result
END {
print "t(T_min)", "T_min", "t_start", "t_stop\n"TimeMin, TempMin, tstart, tstop
}