fnmatch(3) Library Functions Manual fnmatch(3) fnmatch - LIBRARY Standard C library (libc, -lc) #include int fnmatch(const char *pattern, const char *string, int flags); fnmatch() , string pattern, ( glob(7)). flags ; : FNM_NOESCAPE , , . FNM_PATHNAME , string pattern, (*) (?) ([]), . FNM_PERIOD , string pattern. , string, FNM_PATHNAME . FNM_FILE_NAME FNM_PATHNAME GNU. FNM_LEADING_DIR ( GNU) , , string, . glibc . FNM_CASEFOLD ( GNU) , . FNM_EXTMATCH ( GNU) , 'ksh' . pattern-list , '|', : '?(pattern-list)' , pattern-list string. '*(pattern-list)' , pattern-list string. '+(pattern-list)' , pattern-list string. '@(pattern-list)' , pattern-list string. '!(pattern-list)' , string - pattern-list. , string pattern, FNM_NOMATCH, , , . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |fnmatch() | | MT-Safe env locale | +----------------------------+----------------------------------------------------------+--------------------------+ fnmatch() POSIX.1-2008. FNM_FILE_NAME FNM_LEADING_DIR FNM_CASEFOLD GNU. fnmatch() POSIX.1-2001, POSIX.2. sh(1), glob(3), scandir(3), wordexp(3), glob(7) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , <>. Linux man-pages 6.8 2 2024 . fnmatch(3)