tags:

views:

44

answers:

2

I executed the following command:

find / -type f -name fs-type -exec svnlook tree {} \; |egrep "/$" 

The result was

svnlook: Can't open file '/var/lib/svn/repos/b1me/products/payone/generic/code/core/db/fs-type/format': Not a directory 
svnlook: Can't open file '/var/lib/svn/repos/b1me/products/payone/generic/code/fees/db/fs-type/format': Not a directory

Maybe I should make find command give me the path without db/fs-type/format in other words I should clip the output of find. How can I do this?

A: 

First you can give

find ... -not -path "*/db/*"

to find.

khmarbaise
it is not work the followin result appear:find: bad option -notfind: path-list predicate-list
Osama Ahmad
That sound like not having a GNU find ? (Are you working on solaris?)
khmarbaise
no i don't know ???
Osama Ahmad
A: 

This is what you're looking for

find Subversion -type d -name db -exec svnlook tree {}/.. \; | egrep "/$"

Your command was failing because svnlook expects a directory argument not a file one.

Mark O'Connor