Changes

Jump to navigation Jump to search
32 bytes added ,  16:12, 6 January 2010
Line 94: Line 94:  
Type the following command to find out all c program file (*.c):
 
Type the following command to find out all c program file (*.c):
 
<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 /home 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 /home directory (current user's home 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 lang="bash">find $HOME -name \*.c
 
find $HOME -name \*main.c
 
find $HOME -name \*main.c

Navigation menu