missing the boat
- From: "Michael De Tomaso" <mdetomaso@xxxxxxxxxx>
- Date: Sat, 30 Apr 2005 17:49:57 GMT
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>
_ _
| |_ ___ _ __ ___ __ _ | |_ ___ ___
| __| / _ \ | '_ ` _ \ / _` | | __| / _ \ / _ \
| |_ | (_) | | | | | | | | (_| | | |_ | (_) | | __/
\__| \___/ |_| |_| |_| \__,_| \__| \___/ \___|
.
- Follow-Ups:
- Re: missing the boat
- From: A. Sinan Unur
- Re: missing the boat
- Prev by Date: Re: a regex question ..
- Next by Date: Re: Performance question with a string concat
- Previous by thread: a regex question ..
- Next by thread: Re: missing the boat
- Index(es):
Relevant Pages
|
|