while(<>) { next until /vfiler1/; print (split)[2], "\n" if /^IP address:/; }
which would consume lines until the "vfiler1" line, then split lines beginnning with "IP address" on whitespace and print the third field - the address you are looking for.
Not tested! :)
In reply to Re: Extracing (and excluding) IP's from a file
by mjscott2702
in thread Extracing (and excluding) IP's from a file
by sporesbash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |