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: Jim.Hyslop
Subject: RE: Change a keyword for another keyword
Date: Wed, 9 Feb 2005 09:36:52 -0500

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).

-- 
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. ( http://www.leitch.com )
Columnist, C/C++ Users Journal ( http://www.cuj.com/experts )





reply via email to

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