replace text in file

2009-02-25 Thread lemba
Hi All, I'm trying to replace some text in file. Below is my script. It basically makes a copy of line with changes. How can I replace pattern in the uxix sed way? use strict; use warnings; use Cwd; use Win32; use File::Path; use File::Find; use File::Basename; @ARGV = Win32::GetCwd

Re: replace text in file

2009-02-25 Thread Jim Gibson
On 2/25/09 Wed Feb 25, 2009 5:02 PM, lemba le...@sbcglobal.net scribbled: Hi All, I'm trying to replace some text in file. Below is my script. It basically makes a copy of line with changes. How can I replace pattern in the uxix sed way? I don't use sed, but you can use Perl one-liners