UNIX Commands and Command Shells

Wildcards

In UNIX, wildcards entered on the command line are interpreted by the shell and are therefore expanded before the command is executed. The shell replaces a token containing a wildcard with a list of all of the matching file names, so the command actually receives the expanded list of names.

Command line expansion of wildcards can be overridden by escaping the wildcard characters. For example, to search all subdirectories for files ending with a ".log" extension, use:

find . -name \*.log

Or, to extract only the ".html" files from a ".zip" archive, use:

unzip mystuff.zip \*.html

Last updated Tuesday October 3, 2006


Printer-friendly PDF* format:

UNIX Commands and Command Shells

This Section

You are currently viewing this page in XHTML 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML 2* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.