正则表达式概念篇
一 定义
正则表达式拾用于描述字符排列和匹配模式的一种语法规则。
它主要用于字符串的模式分割、查找、匹配以及替换操作。
二 shell编程之正则表达式与通配符区别

三 通配符
*:匹配任意内容
?:匹配任意一个内容
[]:匹配中括号中的一个字符
[root@localhost ~]# touch cangls
[root@localhost ~]# touch canyls
[root@localhost ~]# ls can?ls
cangls canyls
[root@localhost ~]# ls can*
cangls canyls
[root@localhost ~]# ls can[gy]ls
cangls canyls