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/* > do > # ... > done
I always forget about /sys; sorry. You still need to drop lo, though. -Robin -- 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/ -- To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org