aboutsummaryrefslogtreecommitdiff
path: root/commands/ifconfig/interfaces-names
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-03-22 21:36:58 +0000
committerJordan Bracco <href@random.sh>2022-03-22 21:36:58 +0000
commit435531e42f3d1b1d0de291071aedb111d727e57d (patch)
treef51ae7f59750b41f6ac416e01f102801a1c420b6 /commands/ifconfig/interfaces-names
Initial PoC
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')