Re: command line search and replace

2003-12-31 Thread drieux
On Dec 31, 2003, at 8:22 AM, Randy Brown wrote: Ah yes, now the real stumper: The line: perl -pi -e 's/file:.*<\/provider-url>/REPLACED/' testfile.txt does in fact work fine from the commandline in unix. However, when it is called from a ksh script, it does not function. Any ideas? I have trie

RE: command line search and replace

2003-12-31 Thread Randy Brown
tions that I can think of. Thanks very much. Randy -Original Message- From: drieux [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 7:04 PM To: Perl Beginners Mailing List Subject: Re: command line search and replace On Dec 30, 2003, at 4:51 PM, Randy Brown wrote: > When

Re: command line search and replace

2003-12-30 Thread drieux
On Dec 30, 2003, at 4:51 PM, Randy Brown wrote: When I try the following, perl reads the * as a literal character, instead of my intent as a global value. Anyone see what I am missing? perl -pi -e "s/file:*<\/provider-url>/REPLACED/g" testfile.txt you might want to revisit perldoc perlretut