Well, for the record, I'm new to awk so lpease be patient with me. :)
I sorted lines, but when I want to get rid of the lines for which 3rd field is unique, by comparing to the previous line, I don't get that previous line printed.
sort -k3,3 file.txt | awk 'BEGIN {prev=$3} ($3==prev) {print...