perl -anle"$F[1]==$F[2] and print" infile > outfile