Linux:grep/egrep,正则表达
具体如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
[root@adamhuan-linux backup]# ls adamhuan_linux_data config ifcfg-enp2s0 redhat-release 文档 adamhuan_linux_data.tar fstab InterlliJIDEA14.desktop resolv.conf centos-release hosts network yum.repos.d [root@adamhuan-linux backup]# ls | egrep -v '^[a]' centos-release config fstab hosts ifcfg-enp2s0 InterlliJIDEA14.desktop network redhat-release resolv.conf yum.repos.d 文档 [root@adamhuan-linux backup]# [root@adamhuan-linux backup]# ls | grep -v '^[a]' centos-release config fstab hosts ifcfg-enp2s0 InterlliJIDEA14.desktop network redhat-release resolv.conf yum.repos.d 文档 [root@adamhuan-linux backup]# |
—————————
Done。