Awk: determine if a string is numeric

awk 'function isnum(x){return(x==x+0)} {if (isnum($1)) {print $1}}'

Will print $1 only if the content is numeric.

If you want to ask me a question or leave me a message add @bougui505 in your comment.