fork download
  1. #!/bin/bash
  2. s='James@hotmail.com 5555511111
  3. J4m35@hotmail.com 5555511112
  4. J4ll@hotmail.com 6453453344'
  5. grep -Eo '^[^@[:space:]0-9]*[0-9][^@[:space:]]*@[^[:space:]]+' <<< "$s"
Success #stdin #stdout 0s 4416KB
stdin
Standard input is empty
stdout
J4m35@hotmail.com
J4ll@hotmail.com