From: Justin Mason (jm at domain jmason.org)
Date: Mon 07 Feb 2000 - 12:23:20 GMT
"John P. Looney" said:
> I'd to tear through a library & all my code that used the library and
> replace a load of function names that wouldn't clash with another library.
> Here's a handy shell function to do a search & replace on all the files
> you send it:
This is similar:
perl -pi.bak -e 's/oldpattern/newpattern/g' *.c *.h
It also makes backups as "filename.bak".
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:22 GMT