[rancid] Can I search (a la grep) a devices change history?

on at LEFerguson.com on at LEFerguson.com
Wed Feb 11 20:35:14 UTC 2026


Thank you again.  I broke for lunch and came back to the next answer.


-----Original Message-----
From: heasley <heas at shrubbery.net> 
Sent: Wednesday, February 11, 2026 2:55 PM
To: on at LEFerguson.com
Cc: heasley <heas at shrubbery.net>; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Can I search (a la grep) a devices change history?

Wed, Feb 11, 2026 at 07:36:07PM +0000, on at LEFerguson.com:
> Almost perfect, I need to look closely and see if I can add a version or date to it, but it worked great (first is 'cd' not cat for those following along at home). 
> 
> But that gets me close enough even if I can't find the version. 

to have the versions, probably need to process all revisions, like

cvs log | <extract version> > revisionlist <loop>(revision list)
  cvs diff $rev1 $rev2 | <match the text you seek>
  if <match>
	<do whatever with the diff or rev2>



More information about the Rancid-discuss mailing list