显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录

显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录

ls  /etc/ | grep ^[^[:alpha:]][[:alpha:]].*

范例:

[root@centos8 ~]# ls
33aa  3ad  3g.txt  abc

[root@centos8 ~]# ls | grep ^[^[:alpha:]][[:alpha:]].*
3ad
3g.txt
[root@centos8 ~]# 
posted @ 2022-04-03 17:04  浅笑人伤  阅读(41)  评论(0)    收藏  举报