4.3.8 Shell wildcards
Often you want a command to work with a group of files without typing all of
them. The filename expansion pattern using the shell
wildcards facilitate this needs.
For example, try the following and think yourself:
$ mkdir junk; cd junk; touch 1.txt 2.txt 3.c 4.h .5.txt
$ echo *.txt
1.txt 2.txt
$ echo *
1.txt 2.txt 3.c 4.h
$ echo *.[hc]
3.c 4.h
$ echo .*
. .. .5.txt
$ echo .[^.]*
.5.txt
$ echo [^1-3]*
4.h
$ cd ..; rm -rf junk