bash$ awk '++count[$1]==2{print $1}' readings.txt 1990-03-25 1991-03-31 1992-03-29 1993-03-28 1995-03-26 bash$