[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#514916: Slightly better way.



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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org
       `-

Attachment: signature.asc
Description: PGP signature


Reply to: