awk -F '|' '{ if($1 !~ /^[0-9]*$/) { print $1 " is not numeric in " $0; } if($2 !~/^[a-zA-Z]*$/) { print $2 " is not alphabetic in " $0 } }' filename