wendy wrote:
> Hello,
> 
> I am new to UNIX shell script. I am wondering how to write a shell script to 
> analyze text:

hmm ... really, this is not the right place to start learning about shell 
scripting (it has nothing inherent to do with networking), but I'll give 
you a few hints for starters;

I'd use these awk expressions:

/qla/           {IF=$0; if_found=1; next}
(if_found == 1) {if_found = 0; print IF; print $2}

how to get the ipv6 data is left as an exercise to the reader ... (and yes, 
perl can do that too, and there's definitely more elegant ways ...)


> bash-3.00$ /usr/sbin/ifconfig -a
[...]

HTH
Michael
-- 
Michael Schuster        Sun Microsystems, Inc.
Recursion, n.: see 'Recursion'
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to