|
[root@centos46 ~]# ls -al|grep test
-rw-r--r-- 1 root root 41 Jul 31 02:04 test0731
-rw-r--r-- 1 root root 0 Jul 31 21:05 test.c
-rw-r--r-- 1 root root 0 Aug 1 11:42 test.c.[1-5]
-rw-r--r-- 1 root test 79 Jul 30 06:42 testtxt
-rw-r--r-- 1 root root 80 Jul 30 04:49 testtxt2
-rw-r--r-- 1 root root 80 Jul 30 04:51 testtxt3
-rw-r--r-- 1 root test 36 Jul 29 09:10 .vimrc
[root@centos46 ~]#
[root@centos46 ~]#
[root@centos46 ~]# ls -al|grep test.*
[root@centos46 ~]#
[root@centos46 ~]#
[root@centos46 ~]# ls -al|grep test.?
-rw-r--r-- 1 root root 0 Jul 31 21:05 test.c
-rw-r--r-- 1 root root 0 Aug 1 11:42 test.c.[1-5]
注意用test.*一个也没匹配上。请问为什么呢? |
|