Re: Small script to execute from browser..

2001-04-27 Thread Bret Hughes
Kiran Kumar M wrote: > Hi, > > It might be a bit out topic, but I hope experts in cgi and perl will give > me some solution.. > > I have the following script that execute at command prompt and working > fine .. > > perl -pi -e 's/^(user)(\s+.*)(old)(.*)$/${1}${2}new${4}/' filename > > For replac

Small script to execute from browser..

2001-04-26 Thread Kiran Kumar M
Hi, It might be a bit out topic, but I hope experts in cgi and perl will give me some solution.. I have the following script that execute at command prompt and working fine .. perl -pi -e 's/^(user)(\s+.*)(old)(.*)$/${1}${2}new${4}/' filename For replacing the old item with the new item bas