1、+ 重复一个或是一个以上的前面的一个字符的行
eg:
[root@localhost test]# egrep "490+2" cyl.txt
49002
2、? 重复0个或0次前面的一个字符
[root@localhost test]# egrep "4900?2" cyl.txt
49002
1、+ 重复一个或是一个以上的前面的一个字符的行
eg:
[root@localhost test]# egrep "490+2" cyl.txt
49002
2、? 重复0个或0次前面的一个字符
[root@localhost test]# egrep "4900?2" cyl.txt
49002