Skip to content

Instantly share code, notes, and snippets.

@MoritzBuetzer
Created July 3, 2017 05:46
Show Gist options
  • Save MoritzBuetzer/cd63be42f48504e710533fd7c7073fda to your computer and use it in GitHub Desktop.
Save MoritzBuetzer/cd63be42f48504e710533fd7c7073fda to your computer and use it in GitHub Desktop.

Find Raspberry Pi in network with this snippet because all Pi MAC addresses starting with B8:27:EB.

$ sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment