in reply to How to use Perl to search and replace inside C source code

This script should replace all oldstring to newstring in the file bla.c
For safety reasons a backup bla.c~ is created.
perl -pi~ -e 's/oldstring/newstring/g' bla.c