Wening Andreas wrote:
> Hey,
>
> Works great, but what does that actually mean "2>&1"? I mean what is DOS/NT
> shell doing?
Standard open file handles for all C (from UNIX) programs are:
0 = STDIN
1 = STDOUT
2 = STDERR
so 2>&1 would redirect STDERR(2) to wherever ST
Hey,
Works great, but what does that actually mean "2>&1"? I mean what is DOS/NT
shell doing?
Andreas.
-Original Message-
From: Michael Mirman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 5:54 PM
To: Wening Andreas
Cc: '[EMAIL PROTECTED]'
Subject: Re: redirecting stderror
Tr
How about this?
myscript.pl >> mylog.txt 2>&1
Kirk W. Batzer
[EMAIL PROTECTED]
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On
> Behalf Of Wening Andreas
> Sent: Tuesday, May 21, 2002 5:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: redirecting stderror
>
>
>
Im looking for a Regular Expression pattern that will allow me to remove everything
from a string but Numeric values. I could have sworn there was a simple way to do
this, but I cant find it anywhere in Chapter 5 of the Camel
Thanks,
DKramer
z¹V}öÙ¢f¢)à+-=êåZ)÷Øfyb²Û®ð¶+
> Im looking for a Regular Expression pattern
> that will allow me to remove everything from a string but Numeric values.
Probably easiest way is
$x='abc123!@#456xyz';
$x =~ s/\D//g;
print $x;
Should yield 123456
Regards,
Rick
___
Perl-
Thanks Everyone!!!$casQty =~ s/[^\d]//g;worked like a charm
-Original Message-
From: Michael D. Schleif [mailto:[EMAIL PROTECTED]]
Sent: Tue 5/21/2002 2:51 PM
To:
Cc: [EMAIL PROTECTED]
Subject: Re: RegExp Question: re
Here is one way to do that:
my $str = '1,a%2$b*3(c)4,d';
$str =~ s/\D//g;
print $str; # prints 1234
Tony
"David Kramer"
Try
yourscript.pl >> output 2>&1
or
yourscript.pl >> output1 2> output2
In some cases I have to add "perl " in front of the script name.
At 05:06 PM 5/21/2002, Wening Andreas wrote:
>myscript.pl >> mylog.txt
>
>So far the command works fine, but I only get the direct output, I
Try page #79 (Chapter 7)
David Kramer wrote:
> Im looking for a Regular Expression pattern that will allow me to remove everything
>from a string but Numeric values. I could have sworn there was a simple way to do
>this, but I cant find it anywhere in Chapter 5 of the Camel
>
> Thanks,
>
David Kramer wrote:
>
> Im looking for a Regular Expression pattern that will allow me to remove everything
>from a string but Numeric values. I could have sworn there was a simple way to do
>this, but I cant find it anywhere in Chapter 5 of the Camel
Depending on your definition of `Num
It is the not (^) digit (\d)= [^\d]+
Eg:
print map{chr($_)} split(/[^\d]+/,<<_DEAD_
74 Since 117 it 115 costs 116 a 32 lot 65 to 110 win,
111 And 116 even 104 more 101 to 114 lose,
32 You 80 and 101 me 114 bound 108 to 32 spend 72 some 97 time
99 Wond'rin 107 what 101 to 114 choose - 44 Hunt
I believe you can do something like this (but I can't test it right now):
$string =~ s/[^\d]//g; #substitute every character that is not a digit with
nothing
-Original Message-
From: David Kramer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 2:45 PM
To: [EMAIL PROTECTED]
Subjec
Im looking for a Regular Expression pattern that will allow me to remove everything
from a string but Numeric values. I could have sworn there was a simple way to do
this, but I cant find it anywhere in Chapter 5 of the Camel
Thanks,
DKramer
z¹V}öÙ¢f¢)à+-=êåZ)÷Øfyb²Û®ð¶+
Hi,
I want to start a script on my windows box like this:
myscript.pl >> mylog.txt
So far the command works fine, but I only get the direct output, I have also
commands like "$h_ftp->debug(1);" which gives me the details of my ftp
connection.
If I start myscript.pl from a cmd prompt it works
At 03:57 PM 5/21/2002, rAuL wrote:
>How can i verify with one call whether a file is in my path?
@_ = grep(-e ($_ .= "/$file"),
split(/;/, $ENV{PATH}));
--
Mike Mirman Tel: (508) 647-7555
The Mathworks, Inc. FAX: (508) 647-7013
How can i verify with one call whether a file is in my path?
Thanks
___
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
16 matches
Mail list logo