Changes

Jump to navigation Jump to search
62 bytes added ,  17:24, 19 October 2009
Line 95: Line 95:  
<source lang="bash">find $HOME -name *.c</source>
 
<source lang="bash">find $HOME -name *.c</source>
 
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
 +
find $HOME -name \*main.c
 +
find /nas01/apps/admin -iname \*py </source>
 
You can also 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>

Navigation menu