[Top][All Lists]

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

Re: Change a keyword for another keyword

From: Mark E. Hamilton
Subject: Re: Change a keyword for another keyword
Date: Wed, 09 Feb 2005 12:02:06 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Paola Attadio wrote:

I get the next error message:

sed: invalid option -- i

Clearly your sed() doesn't support the '-i/--in-place' option. Something like this shell script should work instead:

for f in $(find . -name CVS -prune -o -type f)
  sed 's/\$revision_history[^\$]*/$Log/g' $f > blarg && mv blarg $f

Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.

reply via email to

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