I have a shell script that wakes up a machine on my local network using etherwake. I'm not sure what the IP address is after the computer is awake.
ip=$(ping -c 1 hostname | head -1 | awk '{print $3}' | sed 's/[()]//g')
Is there a way to get the IP if all I know is the MAC address?