<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2002-2-1 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>1.3.4 File name expansion or ``wild cards''</TITLE> <META NAME="description" CONTENT="1.3.4 File name expansion or ``wild cards''"> <META NAME="keywords" CONTENT="GMT_Tutorial"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="GMT_Tutorial.css"> <LINK REL="previous" HREF="node17.html"> <LINK REL="up" HREF="node14.html"> <LINK REL="next" HREF="node19.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html639" HREF="node19.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html633" HREF="node14.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html629" HREF="node17.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html635" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html637" HREF="node63.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html640" HREF="node19.html">1.3.4.1 Examples</A> <B> Up:</B> <A NAME="tex2html634" HREF="node14.html">1.3 The UNIX Environment:</A> <B> Previous:</B> <A NAME="tex2html630" HREF="node17.html">1.3.3 Standard error (stderr)</A> <B> <A NAME="tex2html636" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html638" HREF="node63.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00334000000000000000"></A> <A NAME="453"></A> <BR> 1.3.4 File name expansion or ``wild cards'' </H2> <A NAME="454"></A> <P> <I>UNIX</I> provides several ways to select groups of files based on name patterns (Table <A HREF="#tbl:wildcard">1.1</A>): <P> <BR><P></P> <DIV ALIGN="CENTER"><A NAME="468"></A> <TABLE> <CAPTION><STRONG>Table 1.1:</STRONG> <I>UNIX</I> wildcards.</CAPTION> <TR><TD> <DIV ALIGN="CENTER"><TABLE CELLPADDING=3 BORDER="1"> <TR><TD ALIGN="CENTER" COLSPAN=1><FONT SIZE="-1"> <I>Code</I></FONT></TD> <TD ALIGN="CENTER" COLSPAN=1><FONT SIZE="-1"> <I>Meaning</I></FONT></TD> </TR> <TR><TD ALIGN="LEFT"><FONT SIZE="-1"> * </FONT></TD> <TD ALIGN="LEFT"><FONT SIZE="-1"> Matches anything </FONT></TD> </TR> <TR><TD ALIGN="LEFT"><FONT SIZE="-1"> ? </FONT></TD> <TD ALIGN="LEFT"><FONT SIZE="-1"> Matches any single character </FONT></TD> </TR> <TR><TD ALIGN="LEFT"><FONT SIZE="-1"> [<I>list</I>] </FONT></TD> <TD ALIGN="LEFT"><FONT SIZE="-1"> Matches characters in the list </FONT></TD> </TR> <TR><TD ALIGN="LEFT"><FONT SIZE="-1"> [<I>range</I>] </FONT></TD> <TD ALIGN="LEFT"><FONT SIZE="-1"> Matches characters in the given range </FONT></TD> </TR> </TABLE><FONT SIZE="-1"> <A NAME="tbl:wildcard"></A></FONT></DIV></TD></TR> </TABLE> </DIV><P></P> <BR> <P> You can save much time by getting into the habit of selecting ``good'' filenames that make it easy to select subsets of all files using the <I>UNIX</I> wild card notation. <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html641" HREF="node19.html">1.3.4.1 Examples</A> </UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html639" HREF="node19.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html633" HREF="node14.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html629" HREF="node17.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html635" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html637" HREF="node63.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html640" HREF="node19.html">1.3.4.1 Examples</A> <B> Up:</B> <A NAME="tex2html634" HREF="node14.html">1.3 The UNIX Environment:</A> <B> Previous:</B> <A NAME="tex2html630" HREF="node17.html">1.3.3 Standard error (stderr)</A> <B> <A NAME="tex2html636" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html638" HREF="node63.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>