From 435531e42f3d1b1d0de291071aedb111d727e57d Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Tue, 22 Mar 2022 21:36:58 +0000 Subject: Initial PoC --- commands/ifconfig/interfaces-names | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 commands/ifconfig/interfaces-names (limited to 'commands/ifconfig/interfaces-names') 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') -- cgit v1.2.3