Skip to content

Instantly share code, notes, and snippets.

@ensup
Created May 9, 2019 12:54
Embed
What would you like to do?
Check-IP(Unix)
#!/bin/bash
ip addr | grep "inet " | grep brd | awk '{print $2}' | awk -F/ '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment