On 10/17/2012 06:24 PM, JD wrote:
> Briefly....
> $ ifconfig -a
> em1       Link encap:Ethernet  HWaddr xx:xx:...etc
> 
> lo        Link encap:Local Loopback
> 
> virbr0    Link encap:Ethernet  HWaddr xx:xx:...etc
> 
> virbr0-nic Link encap:Ethernet  HWaddr xx:xx:...etc
> 
> wlan0     Link encap:Ethernet  HWaddr xx:xx:...etc

Ah, I see. On my systems, I get:

===
em1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether f0:de:f1:fc:65:b3  txqueuelen 1000  (Ethernet)
===

So the script says "grab any non-space character up to the colon (foo:).
Your now showing a colon, so it fails to match.

Try replacing:

===
        if ($line =~ /^(\S+):/)
===

With:


===
        if ($line =~ /^(\S+)/)
===

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to