On Tue, Jun 24, 2003 at 10:22:43PM +0200, Alfredo Braunstein wrote:
> maybe somethig like (using bash, from within the src/ directory, untested):
>
> for x in `grep -l ControlRef {,*/,*/*/}*.{C,h}`; do echo $x; mv $x $x.save;
> cat $x.save | sed s/ControlRef/ControlLyXRef/g > $x; done
>
> will do.
>
> (if something fails, original files should have a .save appended)
perl -p -i.save -e 's/ControlRef/ControlLyXRef/g' {,*/,*/*/}*.{C,h}
should do the same thing
Andre', never using the '.save', though...
--
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)