#!/bin/sh
echo "This will send a ping to $1, press enter to continue C-c to abort"
read
FMIP=$(ping -c 1 $1 | awk '$2 == "bytes" { print substr($5,2, length($5) -3) }')
echo -e "IP\t\tMAC"
cat /proc/net/arp | grep $FMIP | awk '{print $1 "\t" $4}'

