Re: Perl Filter problem

2001-10-27 Thread Brett W. McCoy
On Sat, 27 Oct 2001, Brett W. McCoy wrote: > On Sat, 27 Oct 2001, David Gilden wrote: > > > cold:~/cgi$ perl -pie 's/;"\);/"\);/ ' * > > Can't open perl script "s/;"\);/"\);/ ": No such file or directory > > Try this > > perl -pi -e 's/;"\);/"\);/g' * > > Separate the -e. You might also want /

Re: Perl Filter problem

2001-10-27 Thread Brett W. McCoy
On Sat, 27 Oct 2001, David Gilden wrote: > cold:~/cgi$ perl -pie 's/;"\);/"\);/ ' * > Can't open perl script "s/;"\);/"\);/ ": No such file or directory Try this perl -pi -e 's/;"\);/"\);/g' * Separate the -e. You might also want /g at the end of the substitution, so it doesn't quit on the

Perl Filter problem

2001-10-27 Thread David Gilden
Can anyone please tell me what is wrong here, Thnx Dave cold:~/cgi$ perl -pie 's/;"\);/"\);/ ' * Can't open perl script "s/;"\);/"\);/ ": No such file or directory What I want to do is change all files in the current directory. Find lines that contain: ;"); And change them to: "); ---