Changes

Jump to navigation Jump to search
10 bytes added ,  17:22, 19 October 2009
Line 96: Line 96:  
In the above example, the *.c is expanded by the bash shell. It will try to match all filename ending with .c in the current directory such as main.c, lib1.c, lib2.c, ssh.c, auth.c etc. You can escape the wild card using the backslash as the escape character:
 
In the above example, the *.c is expanded by the bash shell. It will try to match all filename ending with .c in the current directory such as main.c, lib1.c, lib2.c, ssh.c, auth.c etc. You can escape the wild card using the backslash as the escape character:
 
<source lang="bash">find $HOME -name \*.c</source>
 
<source lang="bash">find $HOME -name \*.c</source>
OR use the [[quoting|double quote]]:
+
You can also use the [[Quoting|double quote]]
 
<source lang="bash">find $HOME -name "*.c"</source>
 
<source lang="bash">find $HOME -name "*.c"</source>
 +
 
[[Category:Variables and Quoting]]
 
[[Category:Variables and Quoting]]
 
{{navigation
 
{{navigation
 
|previous=Echo Command|Display the value of shell variables
 
|previous=Echo Command|Display the value of shell variables
 
|next=Export Variables|The export statement}}
 
|next=Export Variables|The export statement}}

Navigation menu