i have a file like below
44309,266,01/22/2009 06:03:31,44224477173,00042000156022508735
44309,266,01/22/2009 06:04:07,44224223732,00042000156022509112
44309,266,01/22/2009 06:04:07,44224536952,00042000156022510250
44309,266,01/22/2009 06:04:07,44224642506,00042000156022510285
44309,266,01/22/2009 06:09:37,44224470142,00042000156022508745
44309,266,01/23/2009 06:03:31,44224477173,00042000156022508735
last field serials do repeat many times in file however i only want to select the very last instance of it based on date and time. How can i do that.
in above example first record will be dropped as it is repeating in very last record exact same code (field 5) however differnt date.
44309,266,01/22/2009 06:03:31,44224477173,00042000156022508735
44309,266,01/22/2009 06:04:07,44224223732,00042000156022509112
44309,266,01/22/2009 06:04:07,44224536952,00042000156022510250
44309,266,01/22/2009 06:04:07,44224642506,00042000156022510285
44309,266,01/22/2009 06:09:37,44224470142,00042000156022508745
44309,266,01/23/2009 06:03:31,44224477173,00042000156022508735
last field serials do repeat many times in file however i only want to select the very last instance of it based on date and time. How can i do that.
in above example first record will be dropped as it is repeating in very last record exact same code (field 5) however differnt date.