Man page - wildmat(3)
Packages contas this manual
- subst(1)
- ctlinnd(8)
- makeactive(8)
- hosts.nntp(5)
- shlock(1)
- convdate(1)
- overview.fmt(5)
- pgpverify(8)
- innwatch.ctl(5)
- installit(1)
- news-recovery(8)
- shrinkfile(1)
- innwatch(8)
- history(5)
- batcher(8)
- buffchan(8)
- clientlib(3)
- fastrm(8)
- nntpsend(8)
- innstat(8)
- newslog(8)
- filechan(8)
- grephistory(1)
- expirerm(8)
- scanlogs(8)
- innd(8)
- distrib.pats(5)
- expire(8)
- libinn(3)
- innxmit(8)
- inndcomm(3)
- control.ctl(5)
- expireover(8)
- active(5)
- tally.unwanted(8)
- cvtbatch(8)
- makehistory(8)
- overchan(8)
- news.daily(8)
- newsfeeds(5)
- rnews(1)
- innconfval(1)
- newslog(5)
- newsrequeue(8)
- getlist(1)
- moderators(5)
- send-uucp(8)
- in.nnrpd(8)
- prunehistory(8)
- nntpget(1)
- crosspost(8)
- parsedate(3)
- expire.ctl(5)
- nnrp.access(5)
- inncheck(8)
- inndstart(8)
- nntpsend.ctl(5)
- inews(1)
- dbz(3)
- innxbatch(8)
- qio(3)
- tally.control(8)
- inn.conf(5)
- actsync(8)
- innlog.pl(8)
- archive(8)
- writelog(8)
- wildmat(3)
- passwd.nntp(5)
- cycbuff.conf(5)
- ctlinnd(8)
- cnfsheadconf(8)
- active.times(5)
- innwatch.ctl(5)
- ident(8)
- scanspool(8)
- tdx-util(8)
- buffindexed.conf(5)
- innd(8)
- inpaths(8)
- expire(8)
- control.ctl(5)
- cvtbatch(8)
- nnrpd(8)
- newsfeeds(5)
- inndf(8)
- docheckgroups(8)
- actsyncd(8)
- innfeed.conf(5)
- send-uucp(8)
- news2mail(8)
- controlchan(8)
- inn-radius.conf(5)
- inncheck(8)
- auth_krb5(8)
- sendinpaths(8)
- motd.news(5)
- innxbatch(8)
- tally.control(8)
- newsgroups(5)
- innfeed(8)
- localgroups(5)
- motd.nnrpd(5)
- tinyleaf(8)
- shrinkfile(1)
- innwatch(8)
- batcher(8)
- distributions(5)
- ovdb(5)
- ovdb_monitor(8)
- buffchan(8)
- readers.conf(5)
- scanlogs(8)
- innxmit(8)
- active(5)
- makedbz(8)
- expireover(8)
- send-nntp(8)
- news.daily(8)
- newslog(5)
- prunehistory(8)
- ovsqlite-util(8)
- send-ihave(8)
- nntpget(1)
- ckpasswd(8)
- delayer(8)
- nntpsend.ctl(5)
- storage.conf(5)
- incoming.conf(5)
- rc.news(8)
- radius(8)
- mailpost(8)
- nocem.ctl(5)
- convdate(1)
- gencancel(1)
- ovsqlite-server(8)
- nntpsend(8)
- sm(8)
- grephistory(1)
- cnfsstat(8)
- mod-active(8)
- makehistory(8)
- pgpverify(1)
- getlist(1)
- ovsqlite(5)
- shlock(8)
- perl-nocem(8)
- libinn_uwildmat(3)
- fastrm(1)
- ovdb_init(8)
- ninpaths(8)
- archive(8)
- pullnews(1)
- domain(8)
- sendxbatches(8)
- imapfeed(8)
- inn-secrets.conf(5)
- procbatch(8)
- history(5)
- motd.innd(5)
- innstat(8)
- innreport.conf(5)
- expirerm(8)
- innupgrade(8)
- subscriptions(5)
- overchan(8)
- innconfval(1)
- innreport(8)
- ovdb_stat(8)
- expire.ctl(5)
- nnrpd.track(5)
- ovdb_server(8)
- innmail(1)
- innbind(8)
- actsync(8)
- writelog(8)
- wildmat(3)
apt-get install inn
apt-get install inn2
Manual
| WILDMAT(3) | Library Functions Manual | WILDMAT(3) |
NAME
wildmat - perform shell-style wildcard matching
SYNOPSIS
int
wildmat(text, pattern)
char *text;
char *pattern;
DESCRIPTION
Wildmat is part of libinn (3). Wildmat compares the text against the pattern and returns non-zero if the pattern matches the text. The pattern is interpreted according to rules similar to shell filename wildcards, and not as a full regular expression such as those handled by the grep(1) family of programs or the regex(3) or regexp(3) set of routines.
The pattern is interpreted as follows:
- \x
- Turns off the special meaning of x and matches it directly; this is used mostly before a question mark or asterisk, and is not special inside square brackets.
- ?
- Matches any single character.
- *
- Matches any sequence of zero or more characters.
- [x...y]
- Matches any single character specified by the set x...y. A minus sign may be used to indicate a range of characters. That is, [0-5abc] is a shorthand for [012345abc]. More than one range may appear inside a character set; [0-9a-zA-Z._] matches almost all of the legal characters for a host name. The close bracket, ], may be used if it is the first character in the set. The minus sign, -, may be used if it is either the first or last character in the set.
- [^x...y]
- This matches any character not in the set x...y, which is interpreted as described above. For example, [^]-] matches any character other than a close bracket or minus sign.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> in 1986, and posted to Usenet several times since then, most notably in comp.sources.misc in March, 1991.
Lars Mathiesen <thorinn@diku.dk> enhanced the multi-asterisk failure mode in early 1991.
Rich and Lars increased the efficiency of star patterns and reposted it to comp.sources.misc in April, 1991.
Robert Elz <kre@munnari.oz.au> added minus sign and close bracket handling in June, 1991.
This is revision 1.10, dated 1992/04/03.
SEE ALSO
grep(1), regex(3), regexp(3).