How to get latest LoginDateTime based on second and third field (userID & userRole)? Sample input and expected output as per below. Total records per file < 5000 records.
Input.csv
AppName,UserID,UserRole,LoginDateTime
App1,googleservice,Power User,"Jul 10, 2022 16:02:41 UTC"
App1,googleservice,Power User,"Jul 9, 2022 16:02:41 UTC"
App1,googleservice,User,"August 9, 2022 16:02:41 UTC"
App1,googleservice,User,"August 10, 2022 16:02:41 UTC"
App1,pretty.zinta@google.com,Service Administrator,"August 1, 2022 05:05:47 UTC"
App1,pretty.zinta@google.com,Service Administrator,"August 2, 2022 07:07:47 UTC"
App1,pretty.zinta@google.com,Viewer,"July 11, 2022 06:01:20 UTC"
App1,pretty.zinta@google.com,Viewer,"July 14, 2022 10:01:20 UTC"
Desired output:
AppName,UserID,UserRole,LoginDateTime
App1,googleservice,Power User,"Jul 10, 2022 16:02:41 UTC"
App1,googleservice,User,"August 10, 2022 16:02:41 UTC"
App1,pretty.zinta@google.com,Service Administrator,"August 2, 2022 07:07:47 UTC"
App1,pretty.zinta@google.com,Viewer,"July 14, 2022 10:01:20 UTC"
I have attempted partial commands and in-complete due to Date and Time format is in UTC format. How to achieve the desired output?