return list entries matching specified pattern
lmatch [mode] list pattern
Searches the elements of list, returning a list of all elements
matching pattern. If none match, an empty list is returned.
The mode argument indicates how the elements of the list are to
be matched against pattern and it must have one of the following
The list element must contain exactly the same string as pattern.
pattern is a glob-style pattern which is matched against each list
element using the same rules as the string match command.
pattern is treated as a regular expression and matched against
each list element using the same rules as the regexp command.
If mode is omitted then it defaults to -glob.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003