Greg Wooledge:Parsing the interface names out of THAT is significantly harder. In support of my earlier point that some other people did make modern ifconfig usable in such ways:JdeBP % ifconfig -l bge0 bge1 lo0 tun0 JdeBP % Here's something from a script of mine:
(Note that this is as loose as it is because I'm only targetting
Linux-based operating systems and the BSDs so far here. Also note
that this breaks on OpenBSD which does not have the |