Identifier replacesments

Michael Grenier mike at cimcor.mn.org
Fri Dec 16 02:21:14 AEST 1988


Does anyone know a simple shell script of program that will
do identifier replacements in a file. I want to rename variables,
etc. I could use /lib/cpp but it tends to remove comments and
introduce other problems. Programs like sed will match
an identifier but it is difficult to replace them without also replacing
those longer words which might contain the identifier in question.

Any ideas?

     -Mike Grenier
     mike at cimcor.mn.org
     uunet!rosevax!cimcor!mike
      bungia!cimcor!mike



More information about the Comp.unix.questions mailing list