Powershell - Recurring duplicates over a given time interval in csv file

Viewed 15

I want to sort recurring duplicates over a given time interval.

Sort duplicates in the time interval -30' + 30' as example

From this csv

TEST.CSV


DHMS            User
-----           -----                   
06/03/22 18:44  A
06/03/22 18:45  G
06/03/22 18:46  B
06/03/22 19:57  C
06/03/22 20:49  D
15/03/22 11:40  A
15/03/22 11:42  F
15/03/22 11:52  B
15/03/22 13:54  E
15/03/22 14:49  C

to this one

RESULT.CSV


DHMS              User
-----             -----
06/03/22 18:44:26 A
06/03/22 18:46:41 B
15/03/22 11:40:53 A
15/03/22 11:52:44 B

It is ok for me to find duplicates but not "following duplicates"

0 Answers
Related