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 13:30:45 -0500

Paola Attadio wrote:
> 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?
You're missing the -i parameter to sed. Without it, it will just send the
output of sed to stdout.

If your sed does not support -i, then you'll have to redirect the output to
a file, and rename the file to the original.

-- 
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]