--- type: "note" created: "2024-04-08T22:26:30.036Z" updated: "2024-04-08T22:29:24.484Z" --- # grep - [ubuntu](https://help.ubuntu.com/community/grep) ```bash # https://askubuntu.com/questions/723172/what-tool-can-i-use-to-scan-a-network-and-test-wake-on-lan nmap -sP 192.168.11.0/25 |grep MAC|cut -d\ -f3 > mac wakeonlan -f mac ```