file1 contains multiple alphabetic sequences:
AETYUIOOILAKSJ EAYEURIOPOSIDK RYXURIAJSKDMAO URITORIEJAHSJD YWQIAKSJDHFKCM HAJSUDIDSJSIAJ AJDHDPFDIXSIBJ JAQIAUXCNC
With GNU awk and grep:
awk -v FPAT='[0-9]+|[A-Z]+' '{ print "^.{" $1-1 "}" $2 }' file1 | grep -Ef - file2
Output:
AETYUIOOILAKSJ RYXURIAJSKDMAO URITORIEJAHSJD JAQIAUXCNCVUFO