Skip to main content
3 of 3
added 80 characters in body
KB73
  • 1
  • 3

This will process any line that has 12 alphanumeric characters and print the first field:

awk '/[[:alnum:]]{12}/ {print $1}' file
KB73
  • 1
  • 3