blob: 37f5118fa8df30921749fa3d0001db861aaf3b59 (
plain)
1
2
3
4
5
6
7
|
#!/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
|