[Linux] Add list_interfaces function
This commit is contained in:
parent
baed58786a
commit
851477aebd
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user