Bug#514916: Slightly better way.
On Thu, Feb 19, 2009 at 09:19:02AM +0000, Chris Lamb wrote:
> Robin Lee Powell wrote:
> > + for nic in $(ifconfig -a | grep '^[^ ]' | grep -v '^lo' |
> > sed 's/ .*//' | tr '\012' ' ')
> That's horrible. What's wrong with:
> for IF in /sys/class/net/*
> # ...
I always forget about /sys; sorry. You still need to drop lo,
They say: "The first AIs will be built by the military as weapons."
And I'm thinking: "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/