I have a csv file which is sorted based on the timestamp. like below:
DCR_Path,Direction for Translation,Date & Time
data1,Send for Translation To CTM,Sep 30 2014 03:22
data2,Send for Translation To CTM,Sep 30 2014 03:21
data1,Send for Translation To CTM,Sep 30 2014 03:12
data3,Send for Translation To CTM,Sep 30 2014 03:10
data2,Send for Translation To CTM,Sep 30 2014 02:22
data1,Send for Translation To CTM,Sep 30 2014 02:20
I need to take the latest and remove the other duplicates and output should be:
DCR_Path,Direction for Translation,Date & Time
data1,Send for Translation To CTM,Sep 30 2014 03:22
data2,Send for Translation To CTM,Sep 30 2014 03:21
data3,Send for Translation To CTM,Sep 30 2014 03:10
I tried some sort commands, but unable to get the result. How Can I acheive the desired output?
See Question&Answers more detail:
os