You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffmyk-ansible/roles/install_fastd/files/fastd_grep.sh

8 lines
189 B
Bash

#!/bin/sh
for file in /run/ff*.socket
do
echo $file
nc -U $file | jq -r '.peers | keys[] as $k | "\(.[$k] | .connection.mac_addresses[]) \(.[$k] | .address) \($k)"' | grep $1
done