GLOB(7) Linux Programmer's Manual GLOB(7) NAME glob - (DESCRIPTION) UNIX V6 /etc/glob . shell . glob(3), . (POSIX 1003.2, 3.13). (WILDCARD MATCHING) '?', '*' '[' (wildcard pattern). (globbing) , . : '?' . '*' , . (Character classes) `[...]', '[' '!', `[...]' . , ']' . ( , '[][!]' , '[', ']' '!'.) (Ranges) : '-' . ( , `[A-Fa-f0-9]' `[ABCDEFabcdef0123456789]'.) '-' . ( , `[]-]' ']''-' . `[--/]' `-', `.' `/' .) (Complementation) '[!...]' , '!' . ( , `[!]a-]' ']', 'a' '-' .) '?', '*' '[' , ; shell , . , , '[[?*\]' : '[', '?', '*', '\'. (PATHNAME) . '/' '?' '*', '[.-0]' . '/', . '.', '.' . (, 'rm *' '.profile' , 'tar c *' ; 'tar c .' .) (EMPTY LISTS) , , UNIX . , xv -wait 0 *.gif *.jpg *.gif ( ). , POSIX , . (: .) bash allow_null_glob_expansion=true . ( , , rm `find . -name "*~"` rm -f nosuchfile `find . -name "*~"` rm .) (NOTES) (Regular expressions) , , . , , ; , , '*' . '^' , ( '[!...]'). POSIX , , '[^...]' . (Character classes and Internationalization ) , ASCII , '[ -%]' '[ !"#$%]','[a-z]' . UNIX : X-Y X Y . , , , , . , POSIX , , (i) (ii) (iii) . POSIX , : (iii) X-Y X Y (XY), X Y LC_COLLATE . (iv) , [:alnum:] [:alpha:] [:blank:] [:cntrl:] [:digit:] [:graph:] [:lower:] [:print:] [:punct:] [:space:] [:upper:] [:xdigit:] '[[:lower:]]' '[a-z]', , 'z' . LC_CTYPE . (v) , '[.ch.]' '[.a-acute.]', '[.' '.]' . . (vi) , '[=a=]', '[=' '=]' , . , '[[=a=]]' `[a]' (: Latin-1 ), `[a[.a-acute.][.a-grave.][.a-umlaut.][.a- circumflex.]]'. SEE ALSO sh(1), glob(3), fnmatch(3), locale(7), regex(7) [] [] 2000/10/15 2001/11/17 Linuxman http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Unix 12 June 1998 GLOB(7)