info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change a keyword for another keyword


From: Paola Attadio
Subject: Re: Change a keyword for another keyword
Date: Wed, 09 Feb 2005 15:08:39 -0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

Thanks,

I executed the following thing:
find . -type f -exec sed 's/\$revision_history[^\$]*/$Log/g' {} \;

This it seems to work well, the output of the SED shows the change, but when I observe the files I do not see the change of the keywords. am I making something bad?

Regards,
Paola



Jim.Hyslop wrote:
Paola Attadio wrote:
  
I need the change a keyword for another keyword in the 
archives a module 
of cvs. Quisiera to do this of once. Somebody knows some tool 
and/or way 
to do this?
    

Off the top of my head, something like:

find -type f -exec sed -i 's/\$OriginalRCSKeyword[^\$]*/$NewRCSKeyword/g' {}
\;

should do it. Check your changes very carefully before committing, though,
in case one of the files is binary, or otherwise happens to have a string
that matches the keyword. You'll also probably want a way to filter out
files in the CVS subdirectories - I haven't figured out how to do that with
'find' yet (if indeed it's possible).

  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]