案例一: 字符锁定;匹配非数字 [root@ZabbixServer ~]# cat /proc/diskstats | egrep "sd[`echo {a..z}`]" 8 0 sda 16263 24 983889 243578 201473 1904 10533390 1375457 0 333842 1597554 8 1 sda1 369 0 8925 1450 9 0 4096 8 0 1376 1457 8 2 sda2 15769 24 973012 242051 201464 1904 10529294 1375449 0 333373 1595936 [root@ZabbixServer ~]# cat /proc/diskstats | egrep "sd[`echo {a..z}`]" 8 0 sda 16263 24 983889 243578 201583 1906 10540000 1375912 0 333907 1597989 [root@ZabbixServer ~]#