[Linux] Add list_interfaces function

This commit is contained in:
Ivan Malison 2017-03-28 22:16:17 -07:00
parent baed58786a
commit 851477aebd
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

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