filepat man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

FILEPAT(2)							    FILEPAT(2)

NAME
       filepat: expand, match - file pattern matching

SYNOPSIS
       include "filepat.m";
       filepat := load Filepat Filepat->PATH;

       expand:	fn(pat: string): list of string;
       match:	fn(pat, name: string): int;

DESCRIPTION
       Expand builds a list of file names in alphabetical order that match the
       pattern pat.  The pattern is tokenised using / as a delimiter.

       Match returns 1 if name matches the pattern pat, and 0 otherwise.

       The pat passed to match and expand may include combinations of the spe‐
       cial characters *, ?, [, and ].

       The asterisk * matches a string of zero or more characters.

       The query ?  matches any single character.

       The  notation  [s],  where  s  is a nonempty string, matches any single
       character in s.	The notation [^s],  where  s  is  a  nonempty  string,
       matches any single character not in s.  The characters *, ?, and [ have
       no special meaning within s.

       If any character is preceded by the character \, that  character	 loses
       any special meaning and is interpreted literally.

SOURCE
       /appl/lib/filepat.b

SEE ALSO
       sys-tokenize(2), readdir(2) regex(2)

								    FILEPAT(2)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net