check position of end of line for some specific lines

--------------------------------------------------------------------------------

Have to check in a file that the lines starting with 620 and 705
are ending at same posiotin.

82012345
62023232323
70523949558
62023255454
9999

In the above lines, i have to check the lines starting with 620 and 705 are having the length 94.

Can anyone help. Immediate response is very much appriciated.

Hi,

code:

awk ' ($0 ~ /^620/ || $0 ~ /^705/ ) && (length($0)==94)' a