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
In reply to Re^2: Need help with a nested IF statement
by MikeDexter
in thread Need help with a nested IF statement
by MikeDexter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |