> -Original Message-
> From: Shawn H. Corey [mailto:shawnhco...@gmail.com]
> Sent: Monday, August 24, 2009 11:57
> To: Wagner, David --- Senior Programmer Analyst --- CFS
> Cc: Tony Esposito; Beginners Perl
> Subject: Re: one liner in Windows to replace string
> -Original Message-
> From: Shawn H. Corey [mailto:shawnhco...@gmail.com]
> Sent: Monday, August 24, 2009 11:00
> To: Tony Esposito
> Cc: Beginners Perl
> Subject: Re: one liner in Windows to replace string
>
> Tony Esposito wrote:
> > perl -p -i.b
ot;
; Beginners Perl
Sent: Monday, 24 August, 2009 14:49:47
Subject: Re: one liner in Windows to replace string
Tony Esposito wrote:
> I am happy that it works with double quotes BUT now, when I
try to get all files in a directory with a certain extens
to ; Beginners Perl
Sent: Monday, 24 August, 2009 12:57:27
Subject: Re: one liner in Windows to replace string
Wagner, David --- Senior Programmer Analyst --- CFS wrote:
> I ran under windows with what Tony sent, both the cmd and
a korn
> shell a
> -Original Message-
> From: Tony Esposito [mailto:tony1234567...@yahoo.co.uk]
> Sent: Monday, August 24, 2009 10:46
> To: Beginners Perl
> Cc: tony1234567...@yahoo.co.uk
> Subject: one liner in Windows to replace string
>
> perl -p -i.bak -e 's/CO
Telemachus wrote:
Ok, not to be a jerk, but look at it this way: it's clear that Windows +
one-liners are not going well. In the time we've all gone back and forth on
this, you could have written a 10 line script and run it about 20 times.
Pick your battles, I say.
True, but it means "A Poor
On Mon Aug 24 2009 @ 8:08, Tony Esposito wrote:
> Looks good but it bombs ... the Perl interpreter crashes from the DOS prompt
> ... using version 5.10.0 build 1005 from ActiveState.
>
> But it was better than what I had, that's for sure
>
> This makes for a bit of a mind teaser thanks to it be
ndoze ... :-)
From: Shawn H. Corey
To: Tony Esposito
Cc: "Wagner, David --- Senior Programmer Analyst --- CFS"
; Beginners Perl
Sent: Monday, 24 August, 2009 14:49:47
Subject: Re: one liner in Windows to replace string
Tony Esposito wrote:
> I am happy that it works with double quotes BUT
x27;)" #
does not work -- compilation error ...
??
From: Bob McConnell
To: Tony Esposito ; Shawn H. Corey
; "Wagner, David --- Senior Programmer Analyst --- CFS"
Cc: Beginners Perl
Sent: Monday, 24 August, 2009 14:39:57
Subject: RE: one liner in Windows to replace s
Tony Esposito wrote:
I am happy that it works with double quotes BUT now, when I try to get
all files in a directory with a certain extension, the following does
not work ...
perl -p -i.bak -e "'s/CONSTANT/VARIABLE/'" C:\***.txt
does not like th leading * in the file name when I try to pull
. Corey; Wagner, David --- Senior Programmer Analyst --- CFS
Cc: Beginners Perl
Subject: Re: one liner in Windows to replace string
I am happy that it works with double quotes BUT now, when I try to get all
files in a directory with a certain extension, the following does not work ...
perl -p -i.bak
txt files
...
Help again.
From: Shawn H. Corey
To: "Wagner, David --- Senior Programmer Analyst --- CFS"
Cc: Tony Esposito ; Beginners Perl
Sent: Monday, 24 August, 2009 12:57:27
Subject: Re: one liner in Windows to replace string
Wagner, David
Wagner, David --- Senior Programmer Analyst --- CFS wrote:
I ran under windows with what Tony sent, both the cmd and a korn
shell and both worked and updated as expected..
If you have any questions and/or problems, please let me know.
Thanks.
What version of Windows?
On Mon Aug 24 2009 @ 4:45, Tony Esposito wrote:
> perl -p -i.bak -e 's/CONSTANT/VARIABLE/' C:\test.txt
>
> Trying to replace a string with this one line perl ... in Windows it does not
> seem to work ...
>
> File test.txt contents is ...
>
> CONSTANT 100
> CONSTANT 200
>
> nothing changes ...
Tony Esposito wrote:
perl -p -i.bak -e 's/CONSTANT/VARIABLE/' C:\test.txt
Trying to replace a string with this one line perl ... in Windows it does not
seem to work ...
File test.txt contents is ...
CONSTANT 100
CONSTANT 200
nothing changes ... acts as if it does not 'see' the CONSTANT strin
perl -p -i.bak -e 's/CONSTANT/VARIABLE/' C:\test.txt
Trying to replace a string with this one line perl ... in Windows it does not
seem to work ...
File test.txt contents is ...
CONSTANT 100
CONSTANT 200
nothing changes ... acts as if it does not 'see' the CONSTANT string.
Help because it loo
16 matches
Mail list logo