Not foolproof but simple, skip all the letters, check for digits & then check for "-"


#1

cat abc | grep -v “[a-zA-Z]” | grep “[0-9]” | grep -