The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-19-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
from the man pages:
Code:
       -path pattern
              File name matches shell pattern pattern.  The metacharacters do not treat ‘/’  or  ‘.’  specially;  so,  for
              example,
                        find . -path ’./sr*sc’
              will  print an entry for a directory called ’./src/misc’ (if one exists).  To ignore a whole directory tree,
              use -prune rather than checking every file in the tree.  For example, to skip the directory ‘src/emacs’  and
              all files and directories under it, and print the names of the other files found, do something like this:
                        find . -path ’./src/emacs’ -prune -o -print