kenkanya
07-09-2009, 07:43 AM
Hi Folks,
This is my first post.
I have already installed perl on unix, written some scripts (replacing scripts) and working fine. Iam now trying perl on windows. I had installed on windows too.
OS: Windows XP SP3
C:\>perl -v
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail)
The file "change.bat" contains
set CDIR=C:\
cd %CDIR%
perl -pi -e "s|changeover|changeafter|g" tochange.txt
pause
exit
I run the file (change.bat), but it does not change anything in the file "tochange.txt".
Am i missing anything? (For unix i used single quote and it works fine). I was told i should use double quotes on windows platform.
Do let me know, if anything else needs to be done.
Or
if there is any other alternative on windows (any other freeware), that can be used for the same process?
Thanks
This is my first post.
I have already installed perl on unix, written some scripts (replacing scripts) and working fine. Iam now trying perl on windows. I had installed on windows too.
OS: Windows XP SP3
C:\>perl -v
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail)
The file "change.bat" contains
set CDIR=C:\
cd %CDIR%
perl -pi -e "s|changeover|changeafter|g" tochange.txt
pause
exit
I run the file (change.bat), but it does not change anything in the file "tochange.txt".
Am i missing anything? (For unix i used single quote and it works fine). I was told i should use double quotes on windows platform.
Do let me know, if anything else needs to be done.
Or
if there is any other alternative on windows (any other freeware), that can be used for the same process?
Thanks