shopt nocaseglob

$ shopt -s nocaseglob

$ ll a*
-rw-rw-r-- 1 ubuntu2 ubuntu2 0 Aug 12 12:53 a1
-rw-rw-r-- 1 ubuntu2 ubuntu2 0 Aug 12 12:59 A1
-rw-rw-r-- 1 ubuntu2 ubuntu2 0 Aug 12 12:53 a2
-rw-rw-r-- 1 ubuntu2 ubuntu2 0 Aug 12 12:59 A2


$ shopt -u nocaseglob 
ubuntu2@ubuntu2:~/temp/s$ ls a*
a1  a2  a3  a4  a5

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all