nix, shell, perl, php, mysql and mac os x tips and tricks

Friday, July 1, 2011

grep pattern to match e-mail address

grep -Eiorh '([[:alnum:]_.]+@[[:alnum:]_]+?\.[[:alpha:].]{2,6})' file.txt

No comments:

Post a Comment