in reply to Add Code to functions in File

While there are some tricky ways to do this listed above, I'd go for the crude but effective approach of adding comments to the first file, like:

#---Insert code for function xxx here

And then search and replace using regexes to put the code in the right place.

Not tricky, but effective, if you can get those comments in there in the first place.

I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: Add Code to functions in File
by EchoAngel (Pilgrim) on May 27, 2004 at 11:12 UTC
    well, i should say that i'm doing this for many files to update the "functions". Another I might have forgotten to message was that most of the files contain data and appear to have function syntaxes.