From 634ff938589148f1454174fe946d417d7715a0ec Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 30 Mar 2017 20:18:34 -0700 Subject: [PATCH] [Linux] Add list_interfaces.sh --- dotfiles/lib/bin/list_interfaces.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 dotfiles/lib/bin/list_interfaces.sh diff --git a/dotfiles/lib/bin/list_interfaces.sh b/dotfiles/lib/bin/list_interfaces.sh new file mode 100755 index 00000000..b0346ec3 --- /dev/null +++ b/dotfiles/lib/bin/list_interfaces.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +ip link show | grep -vE '^ ' | get_cols -F ':' 2 | xargs -n 1