Extract the unpredictable data that have its own timestamp in a log file using a Shell script
问题 log.txt will be as below, which are the ID data with its own timestamp (detection_time) that will continuously update in this log.txt file. The ID data will be unpredictable number. It could be from 0000-9999 and the same ID could be appeared in the log.txt again. My goal is to filter the ID that appears again in the log.txt within 15 sec from its first appearance by using shell script. Can anyone help me with this? ID = 4231 detection_time = 1595556730 ID = 3661 detection_time = 1595556731