Currently "ifconfig -a" command listing status of network interfaces may be accomplished with flags -d or -u to limit the list to interfaces that are down or up.
This change allows it to filter the list by name of interface group with additional flag -g groupname (or -g ^groupname to negate condition). Note this is different from "ifconfig -g groupname" that shows interface names only and that behaviour is not affected with the change.
Note that caret symbol (^) was choosen to ease both scripted and interactive usage as it is not special for most shells and does not require extra quotation/escaping.