Hi all,
I was wondering if there was a way to use bash/awk to remove duplicate rows based on a known field range. For example:
Easy Going USA:22 May 1926
Easy Going Gordon USA:6 August 1925
Easy Life USA:20 May 1944
Easy Listening USA:14 January 2002
Easy Listening USA:10 October 2002
Easy Listening USA:27 January 2004
Easy Living USA:7 July 1937
Easy Living USA:16 July 1937
Easy Living USA:4 September 2009
I would like to remove duplicate move titles. The movie title will always be from $1 through $(NF-3). Ideally I would like to stick with the first occurrence (earliest date), but if that's not possible then it doesn't matter.
Thanks,
Tomek