bashrc/.bashrc.d/arpresolve.bash

4 lines
94 B
Bash
Raw Normal View History

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