[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: How to grep the whole repository for a string?

From: Michael Maxwell <mmaxwell_at_casl.umd.edu>
Date: Tue, 2 Sep 2008 17:43:55 -0400

Ed Avis <eda_at_waniasset.com> wrote:
> Hi, I checked the Subversion FAQ but I can't see how to grep the
> whole repository for a particular string.

Yeah, I used to do that under RCS using the ordinary grep...

I see someone gave a pythonic way of doing it. That's probably better than the shell script I wrote to do it. I don't think I still have that around, but it went something like this:

for version_num in `svn -q log <fname> | grep the version numbers | cut the version numbers out` ; \
   do echo $version_num ; \
   svn cat -$version_num <fname> | grep <my_string> ; \
   done

   Mike Maxwell
   CASL/ U Md
Received on 2008-09-02 23:44:26 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.