这是日志数据:-
### Fri Oct 06 00:01:46 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1681 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_5f9cc4cc21704e0ebcc18ef6cdf7ba61_spot_train_flow_395_06_10_2023_00_01_37 hyp:12344 language:hin serviceId:default_udialer_inbound txnId:136149976401481415314412122 uid:5f9cc4cc21704e0ebcc18ef6cdf7ba61
### Fri Oct 06 00:01:50 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1230 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_27feb47a4b8f42a6b8608680435c65b7_spot_train_flow_864_06_10_2023_00_01_41 hyp:परमिट0928हैनंबर language:hin serviceId:default_udialer_inbound txnId:5811310151586691127354813 uid:27feb47a4b8f42a6b8608680435c65b7
### Fri Oct 06 00:01:50 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:339 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_6070481eec99432a9a684aad9c4c8b85_spot_train_flow_785_06_10_2023_00_01_44 hyp: language:hin serviceId:default_udialer_inbound txnId:4299191514141188512141013137 uid:6070481eec99432a9a684aad9c4c8b85
### Fri Oct 06 00:01:50 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1862 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_b586a3f777e94f4a9fca534b4527d029_pnr_number_input_flow_891_06_10_2023_00_01_38 hyp: language:hin serviceId:default_udialer_inbound txnId:101313288321051313112158011 uid:b586a3f777e94f4a9fca534b4527d029
### Fri Oct 06 00:01:56 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:393 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_e5a6529e182c40078312611fc993443f_null_670_06_10_2023_00_01_52 hyp:null language:mar serviceId:default_udialer_inbound txnId:91413121061110711868601471214 uid:e5a6529e182c40078312611fc993443f
### Fri Oct 06 00:01:57 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:788 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_9181e4ce958a440ebda3c829bb7d61ae_pnr_number_input_flow_561_06_10_2023_00_01_48 hyp: language:hin serviceId:default_udialer_inbound txnId:60131910914158249661421514 uid:9181e4ce958a440ebda3c829bb7d61ae
### Fri Oct 06 01:01:12 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR+GASR RECOGNIZE_TIME:2909 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_30789c18f8464ad4a603201d9d3b9639_null_653_06_10_2023_01_01_06 hyp:null language:ma serviceId:default_udialer_inbound txnId:610611127151932773111101 uid:30789c18f8464ad4a603201d9d3b9639
### Fri Oct 06 01:01:14 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:902 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_e7137e9291434309b79327bdb3d27ae8_null_849_06_10_2023_01_01_09 hyp:Telugu. language:te serviceId:default_udialer_inbound txnId:3326410111012112511010101335 uid:e7137e9291434309b79327bdb3d27ae8
### Fri Oct 06 02:01:06 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:768 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_ac673c48e9874cd78f59175336c5ae49_null_215_06_10_2023_02_01_00 hyp:YES language:en serviceId:default_udialer_inbound txnId:1583121054711159129124151147 uid:ac673c48e9874cd78f59175336c5ae49
我用 shell 脚本语言编写,我想根据时间过滤数据,就像我这样做:-
#!/bin/bash
log_file="MULTIPLE_ASR_INFO_2023_10_06.log"
output_file="output.log"
start_time="00:00:00"
end_time="01:00:00"
awk -F '[: ]' -v start="$start_time" -v end="$end_time" '$6 >= start && $6 < end && $(NF-3) > 2000' $log_file > $output_file
想要这样的结果:-
### Fri Oct 06 00:01:36 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1184 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_36b78ccd2d4e466fa6ac17784d4e98c4_null_864_06_10_2023_00_01_32 hyp:null language:mar serviceId:default_udialer_inbound txnId:15301312641246671545151215 uid:36b78ccd2d4e466fa6ac17784d4e98c4
### Fri Oct 06 00:01:46 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1681 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_5f9cc4cc21704e0ebcc18ef6cdf7ba61_spot_train_flow_395_06_10_2023_00_01_37 hyp:12344 language:hin serviceId:default_udialer_inbound txnId:136149976401481415314412122 uid:5f9cc4cc21704e0ebcc18ef6cdf7ba61
### Fri Oct 06 00:01:50 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1230 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_27feb47a4b8f42a6b8608680435c65b7_spot_train_flow_864_06_10_2023_00_01_41 hyp:परमिट0928हैनंबर language:hin serviceId:default_udialer_inbound txnId:5811310151586691127354813 uid:27feb47a4b8f42a6b8608680435c65b7
### Fri Oct 06 00:01:50 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:339 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_6070481eec99432a9a684aad9c4c8b85_spot_train_flow_785_06_10_2023_00_01_44 hyp: language:hin serviceId:default_udialer_inbound txnId:4299191514141188512141013137 uid:6070481eec99432a9a684aad9c4c8b85
### Fri Oct 06 00:01:50 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:1862 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_b586a3f777e94f4a9fca534b4527d029_pnr_number_input_flow_891_06_10_2023_00_01_38 hyp: language:hin serviceId:default_udialer_inbound txnId:101313288321051313112158011 uid:b586a3f777e94f4a9fca534b4527d029
### Fri Oct 06 00:01:56 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:393 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_e5a6529e182c40078312611fc993443f_null_670_06_10_2023_00_01_52 hyp:null language:mar serviceId:default_udialer_inbound txnId:91413121061110711868601471214 uid:e5a6529e182c40078312611fc993443f
### Fri Oct 06 00:01:57 IST 2023 ASR_MODE:ALL ASR_USED:+MSASR RECOGNIZE_TIME:788 RESULT_ASR:ALL RESULT_ASR_TIME:0 fileName:ASR_REC_9181e4ce958a440ebda3c829bb7d61ae_pnr_number_input_flow_561_06_10_2023_00_01_48 hyp: language:hin serviceId:default_udialer_inbound txnId:60131910914158249661421514 uid:9181e4ce958a440ebda3c829bb7d61ae