DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Writing Deskshell commands

Wildcards

When a command is executed, any argument containing a wildcard is expanded into a list of filenames matching the wildcard, or an empty list if none match. The wildcard characters have the following meanings:


*
any string except ``/'' or leading dot

?
any single character except ``/'' or leading dot

[chars]
any one of the characters in chars, so for example [xyz] matches either x, y or z. The ``/'' symbol must not appear in the brackets.

[!chars]
any single character except those in chars, ``/'' and leading dot. For example [!xyz] matches any character other than x, y, z, / and leading dot.

Next topic: Using variables
Previous topic: Comments

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003