[Perl-unix-users] RE: Info: MAC

2003-06-10 Thread Mundell, R. \(Ronald\)
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

Re: perl sed like operations.... was RE: [Perl-unix-users] perlequi valent to "cut"

2003-06-10 Thread $Bill Luebkert
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

perl sed like operations.... was RE: [Perl-unix-users] perl equivalent to "cut"

2003-06-10 Thread Markham, Richard
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

RE: [Perl-unix-users] perl equivalent to "cut"

2003-06-10 Thread Brett Marlowe
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

RE: [Perl-unix-users] perl equivalent to "cut"

2003-06-10 Thread Thomas, Mark - BLS CTR
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

RE: [Perl-unix-users] perl equivalent to "cut"

2003-06-10 Thread Thomas, Mark - BLS CTR
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

RE: [Perl-unix-users] perl equivalent to "cut"

2003-06-10 Thread Matt Schneider
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

[Perl-unix-users] perl equivalent to "cut"

2003-06-10 Thread Markham, Richard
Title: perl equivalent to "cut" how can I do the equivalent of $  echo "BLAH=VALUE ONE" | cut -f2 -d'=' VALUE ONE in perl?

[Perl-unix-users] verifying the transfer of a file using scp and perl

2003-06-10 Thread TIBA, LIVIA
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

RE: [Perl-unix-users] Info: MAC

2003-06-10 Thread Thomas, Mark - BLS CTR
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

Re: [Perl-unix-users] Tree in Perl

2003-06-10 Thread Jenda Krynicky
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.