Hi folks,
Below is the content of a file 'tmp.dat', and I want to keep the uniq record (key by first column). However, the uniq record should be the last record.
302293022|2|744124889|744124889
302293022|3|744124889|744124889
302293022|4|744124889|744124889
302293022|5|744124889|744124889
302293022|6|744124889|744124889
302293022|7|744124889|744124889
302293022|8|744124889|744124889
302293022|9|744124889|744124889
302293022|10|744124889|744124889
302293022|11|744124889|744124889
Output:
302293022|11|744124889|744124889
Any ideas... I was playing around with the 'sort' and 'uniq' commands but could not get very far.
Thanks,
CB