in reply to Re: Need help with a nested IF statement
in thread Need help with a nested IF statement
the ifconfig -a prints the following. The device name and ip are NOT on the same line. I don't know how to say look for x on line 1 and tell me y on line 2 after the second regex find..... Can I do that in Perl?
output of command
cccadm@redsox::perl: ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu +8232 index 1 inet 127.0.0.1 netmask ff000000 fjgi0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 ind +ex 2 inet 10.254.190.232 netmask ffffff00 broadcast 10.254.190.255 fjgi1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 ind +ex 3 inet 10.254.140.221 netmask ffffff00 broadcast 10.254.140.255
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help with a nested IF statement
by ikegami (Patriarch) on Nov 02, 2009 at 17:38 UTC | |
by MikeDexter (Sexton) on Nov 02, 2009 at 18:16 UTC | |
by ikegami (Patriarch) on Nov 02, 2009 at 18:36 UTC | |
by MikeDexter (Sexton) on Nov 02, 2009 at 20:24 UTC | |
by ikegami (Patriarch) on Nov 02, 2009 at 20:30 UTC | |
by MikeDexter (Sexton) on Nov 03, 2009 at 13:42 UTC | |
by ikegami (Patriarch) on Nov 03, 2009 at 15:16 UTC | |
|