Thanks for your speedy reply Bob. I tried your suggestion, but the same 
outcome: the command fails without any complaints. BTW, the files didn't have 
extensions. They are three test files (plain text) containing respectively 
"love, live and luve". The actual command that I tried was perl -i -e 
"s/ve/ver/" *.*
Any other ideas I might try?

Regards,

John

----- Original Message ----
From: Bob McConnell <[EMAIL PROTECTED]>
To: John Degen <[EMAIL PROTECTED]>; beginners@perl.org
Sent: Monday, June 18, 2007 2:31:00 PM
Subject: RE: [Perl 5.8.8 on WinXP] Command line usage

Windows uses file extensions for a variety of reasons, so it expects the
period in file names. In most cases, the file spec "*" will only return
files with no extension, such as "README". Have you tried "*.*" instead?

Bob McConnell

> -----Original Message-----
> From: John Degen [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 18, 2007 8:26 AM
> To: beginners@perl.org
> Subject: [Perl 5.8.8 on WinXP] Command line usage
> 
> Hello,
> 
> I'm using Perl 5.8.8 from ActiveState on Windows XP. I'm 
> trying to accomplish a search and replace in a number of 
> files in the same directory from the command line (cmd.exe). 
> The problem is that the command perl -i -e "s/old/new/" * 
> fails silently, i.e. no changes take place. My question is: 
> does * indicate all files in the current directory (this did 
> work in the Windows version of sed I tried)? I cannot find 
> this in the docs or using Google. Or am I making another mistake?
> 
> Thank you for your time.
> 
> John Degen 
> 
> -- 
> Sane sicut lux seipsam, & tenebras manifestat, sic veritas 
> norma sui, & falsi est. -- Spinoza
> 
> 
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/







       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to