homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Search all past cvs diffs for all files in repository
To find a specific string
physics




msg:3289169
 1:39 am on Mar 22, 2007 (gmt 0)

I want to find a specific string that I know existed in the past in one of my projects that is under CVS version control. However, I don't remember which file or which revision it existed in. Is there a way to do this.
Just realized I could go into the cvs repository and do a

grep "my string" * -r

which is a hack but works.
Kind of a pain though, anyone know an easier way?

 

coopster




msg:3289893
 4:30 pm on Mar 22, 2007 (gmt 0)

Are you asking if there is an easier way using your versioning software? Or an easier way to locate the filenames via grep?
grep -H -r "my string" "/path/to/cvs"

The "H" switch will list the filenames, the "r" is recursive.

physics




msg:3290144
 8:03 pm on Mar 22, 2007 (gmt 0)

coop, I meant a better way via CVS, but that is a better grep.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved