fork download
  1. {
  2. for(i = 1; i <= NF; i += 1){
  3. if($i ~ /[a-z\d].+@[a-z\d].+\.[a-z\d]{2,4}$/){ print $i }
  4. }
  5. }
  6.  
Success #stdin #stdout 0.01s 5544KB
stdin
This is my gmail: denys.riabtsev@nure.ua 
gmail @ not mail some@text not@mail.notmail
goodmail@ukr.ua
another.goodmail@nure.ua
stdout
denys.riabtsev@nure.ua
goodmail@ukr.ua
another.goodmail@nure.ua