for interface in $(ip link show up | grep "state UP" | cut -d ':' -f 2); do sudo arp-scan -l --interface "$interface" | grep -P '\t02' | cut -f 1 done