shell/正则表达式/邮件验证.sh

8 lines
123 B
Bash

#!/bin/bash
#验证邮件
gawk --re-interval '/^([a-zA-Z0-9_\-\.\+]+)@([a-zA-Z0-9_\-\+]+)\.([a-zA-Z]{2,5})/{print $0}'