#!/bin/bash # GPLv3 see COPYING.GPL for x in `scan-network.sh 2>/dev/null | grep -i '64 bytes from' | awk -F' ' '{print $4}' | awk -F':' '{print $1}'`; do ssh $x; done