Alex Birch on 2 Dec 2003 16:19:03 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] search and replace multiple files?


John Fiore wrote:

This post was from a while ago.  I saved it because I
thought that it might come in handy.

      perl -pie 's/foo/bar/' file1

I get the error:
     Can't open perl script "s/foo/bar/": No such file
or directory

I'm using bash, but the same thing occurs if I'm using
tcsh.  I'm probably doing something stupid.  Any
ideas?

Try use perl -p -i -e 's/foo/bar/' file1

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug