On Mon, 1 Sep 2008, Vitaliy wrote: > Suppose we have two files: > > file1.c: > function *TOKEN* { Nop(); } > function *TOKEN* { Nop(); } > ... > > file2.txt > MyFunction() > MySecondFunction() > .... > > ...and we want to replace *TOKEN* in file1.c with actual function names. How > do we accomplish the above, with the least amount of work? Are there editors > out there, that can do this? Use a utility called M4. This is a very powerful macro processor that will scan your input for ANY string you define and replace it with ANY other string you define. It is VERY easy to do simple things so you only need to learn the bare minimum to start using it AND if you need to do something complex you can learn a bit more about M4 (until you get to the appropriate level) so that you don't need to use other tools :-) Regards Sergio Masci -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist