perl -lane 'print $. if $F[0]==$F[1]' file