*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> gmatch (3g)              
Title
Content
Arch
Section
 

Contents


gmatch(3G)							    gmatch(3G)


NAME    [Toc]    [Back]

     gmatch - shell global pattern matching

SYNOPSIS    [Toc]    [Back]

     cc	[flag <b>...] file	... -lgen [library <b>...]

     #include <libgen.h>
     int gmatch	(const char *str, const	char *pattern);

DESCRIPTION    [Toc]    [Back]

     gmatch checks whether the null-terminated string str matches the nullterminated
	pattern	string pattern.	 See the sh(1) section ``File Name
     Generation'' for a	discussion of pattern matching.	 gmatch	returns	nonzero
 if the pattern matches the string, zero if the pattern doesn't.  A
     backslash (`\') is	used as	an escape character in pattern strings.

EXAMPLE    [Toc]    [Back]

	  char *s;

	  gmatch (s, "*[a\-]" )


     gmatch returns non-zero (true) for	all strings with `a' or	`-' as their
     last character.

SEE ALSO    [Toc]    [Back]

      
      
     sh(1)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
glob FreeBSD generate pathnames matching a pattern
egrep FreeBSD print lines matching a pattern
fgrep FreeBSD print lines matching a pattern
bzgrep FreeBSD print lines matching a pattern
bzegrep FreeBSD print lines matching a pattern
bzfgrep FreeBSD print lines matching a pattern
zgrep FreeBSD print lines matching a pattern
zegrep FreeBSD print lines matching a pattern
zfgrep FreeBSD print lines matching a pattern
globfree OpenBSD generate pathnames matching a pattern
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service