Windows Command-Line Arguments; Secrets or Stitching Them Together

2013-01-11 Thread Brandon McCaig
Hello, I've been writing more and more utilities in Perl and using them both in Windows and GNU/Linux. Since I'm so used to UNIX shells and terminals, cmd.exe obviously leaves much to be desired, but I don't care for Cygwin or MSYS environments. They each have their own strengths and weaknesses an

Re: [Re: Windows command line Search and Replace]

2003-06-16 Thread John W. Krahn
Greg Carrara wrote: > > Thanks for the response! However, when I try this > perl -pi -e "s/wordToFind/replaceWithThisWord/gi" *.ext > with ActivePerl 5.6.1, on Windows 2000, I receive the error: > > CAN'T DO IN PLACE EDIT WITHOUT BACKUP > > Could this have something to do with Perl not reading

RE: [Re: Windows command line Search and Replace]

2003-06-16 Thread Bakken, Luke
> Thanks for the response! However, when I try this > perl -pi -e "s/wordToFind/replaceWithThisWord/gi" *.ext > with ActivePerl 5.6.1, on Windows 2000, I receive the error: > > CAN'T DO IN PLACE EDIT WITHOUT BACKUP > > Could this have something to do with Perl not reading from > and writing to

Re: [Re: Windows command line Search and Replace]

2003-06-16 Thread GREG CARRARA
>"Jenda Krynicky" <[EMAIL PROTECTED]> wrote: >>From: GREG CARRARA <[EMAIL PROTECTED]> >> Hello, >> I'm trying to search for a word and replace it multiple files at a >> windows command prompt with the following: >> >> perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension >> >> This e

Re: Windows command line Search and Replace

2003-06-13 Thread John W. Krahn
Greg Carrara wrote: > > Hello, Hello, > I'm trying to search for a word and replace it multiple files at a windows > command prompt with the following: > > perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension > > This errors out. I've tried to replace the delimiters / with - to no

Re: Windows command line Search and Replace

2003-06-13 Thread Jenda Krynicky
From: GREG CARRARA <[EMAIL PROTECTED]> > Hello, > I'm trying to search for a word and replace it multiple files at a > windows command prompt with the following: > > perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension > > This errors out. I've tried to replace the delimiters / with

Windows command line Search and Replace

2003-06-13 Thread GREG CARRARA
Hello, I'm trying to search for a word and replace it multiple files at a windows command prompt with the following: perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension This errors out. I've tried to replace the delimiters / with - to no effect. Does someone know how to alter this

Re: windows command line

2002-04-14 Thread Jonathan E. Paton
> Can someone tell me how do I execute a command line in windows using perl? perldoc -f system perldoc perlop (look for "qx" under Quotes and Quote-like operators) E.g. my $output = `do command`; or system"the command"; These may raise errors, which you ***SHOULD*** CHECK for. Don't as

windows command line

2002-04-14 Thread Thiago Ferreira
hi, can someone tell me how do I execute a command line in windows using perl? thanks, Thiago.