Skip to content

Instantly share code, notes, and snippets.

@clamytoe
Created September 13, 2017 12:42
Show Gist options
  • Save clamytoe/6d0bd0b112fc9f5eb22e7cf4dd8b06da to your computer and use it in GitHub Desktop.
Save clamytoe/6d0bd0b112fc9f5eb22e7cf4dd8b06da to your computer and use it in GitHub Desktop.
Script to quickly check your active IP addresses.
#!/bin/bash
echo $(ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment