find command and .SVN folder
To tell find to exclude .svn directories, use the -prune option:
find . \
-path '*/.svn'-prune \
-o -type f -print
Find . directory files
Pass thru the following condition
If the path ends with .svn (.svn can be file or folder), (prune) dont decend
OR if item is file, then print
NOTE: The optimisation is like compiler one, only when the first condition fails, then only the second evaluated
To display only .svn folders
find . -path '*/.svn' -prune
Technorati Tags: svn find linux
Comments
Post a Comment