user2133404
user2133404

Reputation: 1857

find string in svn repository

I have the URL of a svn repository located at a remote location. I want to search recursively for the presence of a string in one of the folders using findstr command. Is it possible or findstr is only to be used to search local folders ?

Upvotes: 2

Views: 7653

Answers (1)

Jesse Hogan
Jesse Hogan

Reputation: 3253

Yes, this is possible. Just use the recursive flag -R of svn ls. Then pipe the output to findstr.

Assuming you are looking for a directory named 'needle':

svn ls -R URL-OF-REPO | findstr needle

Upvotes: 6

Related Questions