I'm sure this has been covered, so my apologies...
I have a list where some items may show up more than once, but I just the status of the most recent one.
I've tried $list | sort date -descending | sort item -unique, but it didn't work consistently
Example
date,item,status
6/14,orange,rotten
6/14,apple,ripe
6/13,orange,ripe
I'd just like my list to contain
6/14,orange,rotten
6/14,apple,ripe