BEGIN { FS="|" } { if ( $2 ~ /-/ ) { split($2,v,"-") if ( length(v[1]) != 5 ) { print "Registro " $1 ", Año " v[1] " " length(v[1])} if ( length(v[2]) != 2 ) { print "Registro " $1 ", Mes " v[2] " " length(v[2])} if ( length(v[3]) != 2 ) { print "Registro " $1 ", Dia " v[3] " " length(v[3])} } } END { print "Fin...." }