Title: RE: Info: MAC
thanks. The problem That I experiance is that I have the MAC address and not the IP address. I need to trace the IP address.
-Original Message-
From: henry isham [mailto:[EMAIL PROTECTED]]
Sent: 10 June 2003 04:14 PM
To: Mundell, R. (Ronald); Perl-Unix-Users (E-ma
Markham, Richard wrote:
> Thanks for all the excellent examples, I learned a whole lot more than I
> bargained for.
> I am currently working on converting korn scripts that I have written
> over to PERL
> for the experience. The following has me stumped, dealing with a sed
> conversion I am
> attem
Title: perl sed like operations was RE: [Perl-unix-users] perl equivalent to "cut"
Thanks for all the excellent examples, I learned a whole lot more than I bargained for.
I am currently working on converting korn scripts that I have written over to PERL
for the experience. The following h
It is shorter, but this is better if you might have = in your value:
echo "BLAH=VALUE ONE" | perl -pe 's/.*?=//'
echo "BLAH=KEY=VALUE" | perl -pe 's/.*?=//'
--- Begin Message ---
I wrote:
> echo "BLAH=VALUE ONE" | perl -anF'=' -e "print pop(@F)"
This is shorter:
echo "BLAH=VALUE ONE" | perl -pe
I wrote:
> echo "BLAH=VALUE ONE" | perl -anF'=' -e "print pop(@F)"
This is shorter:
echo "BLAH=VALUE ONE" | perl -pe "s/.*=//"
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Title: Message
another
way:
echo "BLAH=VALUE
ONE" | perl -anF'=' -e "print pop(@F)"
-Original Message-From: Markham, Richard
[mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003
1:54 PMTo:
[EMAIL PROTECTED]Subject: [Perl-unix-users]
perl equivalent to "cut"
how
Title: perl equivalent to "cut"
I'd do something like this
$string = "BLAH=VALUE ONE";
($string) = $string =~ m/=(.+)$/;
print "$string\n";
or
$string = "BLAH=VALUE ONE";
(@string) = split m/=/, $string;
print "@string[1]\n";
Matthew Schneider System Administrator / Programmer SKLD Inform
Title: perl equivalent to "cut"
how can I do the equivalent of
$ echo "BLAH=VALUE ONE" | cut -f2 -d'='
VALUE ONE
in perl?
Hi,
does someone know how can I verify if a file was transferred correct
using scp, between 2 stations?
I've found a Digest::MD5 module on CPAN but I cannot downloaded due to
an error(?!). However I'm thinking that there has to be another way to
verify this, like a return code from scp, even if th
Title: Message
For Windows, you can
use nbtstat -A. This requires a loaded NetBT driver, which I think is
enabled by default on most Windows platforms. On Unix you can use arp (CPAN
module Net::Arping
may help). Unfortunately, arp works only on local segments. If you need to
query beyond a
From: Pragneshkumar Gandhi <[EMAIL PROTECTED]>
> I wanna to make 3/5 tree in perl
> Menas
> The depth of tree will be 5 and the max child of each node
> will be three.
I think you have this wrong. If I remember right 3,5-tree is a tree
where each node (except leafs) has between 3 and 5 children.
11 matches
Mail list logo