bashrc/.bashrc.d/arpresolve.bash

4 lines
94 B
Bash

arpresolve() {
sudo arping -f "$1" | sed -e '/.*\[\(.*\)\].*/!d' -e 's/.*\[\(.*\)\].*/\1/'
}