perl -ane 'print if $F[-3] eq $F[-2] && $F[-2] eq $F[-1]' data-file