aboutsummaryrefslogtreecommitdiff
path: root/commands/ifconfig/interfaces-names
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ifconfig/interfaces-names')
-rwxr-xr-xcommands/ifconfig/interfaces-names3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/ifconfig/interfaces-names b/commands/ifconfig/interfaces-names
new file mode 100755
index 0000000..f058404
--- /dev/null
+++ b/commands/ifconfig/interfaces-names
@@ -0,0 +1,3 @@
+#!./cloyster
+
+return_result $(ifconfig | grep -E "^[a-z0-9_]+:" | cut -d ':' -f 1 | jq -nRr '[inputs | select(length>0)] | @json')