[Linux] Add list_interfaces function

This commit is contained in:
2017-03-28 22:16:17 -07:00
parent baed58786a
commit 851477aebd

View File

@@ -467,3 +467,7 @@ function localip {
function all_lines_after {
sed -n "/$1/"'$p'
}
function list_interfaces {
ip link show | grep -vE '^ ' | get_cols -F ':' 2 | xargs -n 1
}