missing the boat



10:21 AM 4/30/2005 ... http://paste.wizbit.be/?i=1380022146&t=t
------------------

Q: given a text file: "arp.txt" as follows:


contents of "arp.txt"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D:\study\perl\WIP>type arp.txt

Interface: 192.168.1.100 --- 0x2
Internet Address Physical Address Type

192.168.1.107 00-01-02-7c-94-47 dynamic
192.168.1.109 00-50-ba-a2-90-86 dynamic
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


I'd like to pull out a specific mac address: "00-50-ba-a2-90-86 "


here is my simple program:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#!perl -w

print "where is mdtFRIENDS:\n";
print `grep "00\-50\-ba\-a2\-90\-86" arp.txt`;

print "test over\n";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Q: why don't get the line with the mac address on the screen?

I can pull it out without perl like this:

D:\study\perl\WIP>grep "00\-50\-ba\-a2\-90\-86" arp.txt
192.168.1.109 00-50-ba-a2-90-86 dynamic

Q: where am I missing the boat???

-----


- thanks & take care M.D.

<aka>
_ _
| |_ ___ _ __ ___ __ _ | |_ ___ ___
| __| / _ \ | '_ ` _ \ / _` | | __| / _ \ / _ \
| |_ | (_) | | | | | | | | (_| | | |_ | (_) | | __/
\__| \___/ |_| |_| |_| \__,_| \__| \___/ \___|



.



Relevant Pages

  • Re: Centering Tables with CSS on Mac IE5
    ... >www - the application is accessed over the internet (aka www) ... Spartanicus ... Prev by Date: ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: "Best" recording laptop
    ... running PT on Mac at the studio, ... home or internet use. ... Prev by Date: ...
    (rec.audio.pro)
  • Re: VPC Running and Viruses
    ... I have a router and that is it between the MAC and the Internet. ... Prev by Date: ...
    (microsoft.public.mac.virtualpc)
  • Re: An Apple Magazine
    ... by any chance an equivalent in the Mac world? ... The internet. ... Prev by Date: ...
    (uk.comp.sys.mac)
  • My new Mac wont go online....
    ... of networking, internet, etc. ... I just got a Mac ... Prev by Date: ...
    (comp.sys.mac.system)