I have a file like this:
time case_num other_columns
Code:
20140612162021 3000 others
20140612162022 3001 others
20140612162023 3001 others
20140612162024 3002 others
20140612162025 3002 others
20140612162026 3002 others
According case_num, when the same case_num has more than one line, I'd like to leave such line which has the most recently time.
after remove lines the result file is like
Code:
20140612162021 3000 others
20140612162023 3001 others
20140612162026 3002 others
I'd appreciate your help, many thanks.