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

While parsing ifconfig output is what most probably do, it's also subject
to being broken at any time, since the output of ifconfig really isn't
stable.  Your safest bet would be to write a program that uses the stable
ioctls (e.g., SIOCGLIFADDR) to retrieve the information you need, and then
invoke that program with the approriate commandline options.  I'm sure
there are already a bunch of programs floating around that will do this.

-- 
meem
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to