On Tue, 4 Jun 2002, Einat Wizeman wrote: > I would like to know how can I replace one string to another in a > file > > > For example: > > Temp.c -----> Temp.c > > Print "Einat"; Print "Shalom"; Here you go (from the unix prompt): $ perl -pi -e 's/Print "Einat"/Print "Shalom"/g' Temp.c -- Shlomo Yona shlomo at cs.haifa.ac.il http://cs.haifa.ac.il/~shlomo/